Skip to content

Commit 2b786e4

Browse files
committed
feat: use display names for edge functions
1 parent ca10602 commit 2b786e4

File tree

1 file changed

+4
-1
lines changed
  • packages/runtime/src/helpers

1 file changed

+4
-1
lines changed

packages/runtime/src/helpers/edge.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ const writeEdgeFunction = async ({
129129
}): Promise<
130130
Array<{
131131
function: string
132+
name: string
132133
pattern: string
133134
}>
134135
> => {
@@ -162,7 +163,7 @@ const writeEdgeFunction = async ({
162163
// We add a defintion for each matching path
163164
return matchers.map((matcher) => {
164165
const pattern = matcher.regexp
165-
return { function: name, pattern }
166+
return { function: name, pattern, name: edgeFunctionDefinition.name }
166167
})
167168
}
168169
export const cleanupEdgeFunctions = ({
@@ -176,6 +177,7 @@ export const writeDevEdgeFunction = async ({
176177
functions: [
177178
{
178179
function: 'next-dev',
180+
name: 'netlify dev handler',
179181
path: '/*',
180182
},
181183
],
@@ -226,6 +228,7 @@ export const writeEdgeFunctions = async (netlifyConfig: NetlifyConfig) => {
226228
)
227229
manifest.functions.push({
228230
function: 'ipx',
231+
name: 'next/image handler',
229232
path: '/_next/image*',
230233
})
231234
}

0 commit comments

Comments
 (0)