We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5713ffe commit 0c0a293Copy full SHA for 0c0a293
src/build/functions/edge.ts
@@ -313,17 +313,11 @@ const buildHandlerDefinition = (
313
ctx: PluginContext,
314
def: EdgeOrNodeMiddlewareDefinition,
315
): Array<ManifestFunction> => {
316
- const functionHandlerName = getHandlerName({ name: def.name })
317
- const functionName = 'Next.js Middleware Handler'
318
- const cache = def.name.endsWith('middleware') ? undefined : ('manual' as const)
319
- const generator = `${ctx.pluginName}@${ctx.pluginVersion}`
320
-
321
return augmentMatchers(def.matchers, ctx).map((matcher) => ({
322
- function: functionHandlerName,
323
- name: functionName,
+ function: getHandlerName({name: def.name}),
+ name: 'Next.js Middleware Handler',
324
pattern: matcher.regexp,
325
- cache,
326
- generator,
+ generator: `${ctx.pluginName}@${ctx.pluginVersion}`,
327
}))
328
}
329
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments