We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68f5e82 commit 62e2efeCopy full SHA for 62e2efe
packages/runtime/src/templates/edge/next-dev.js
@@ -35,7 +35,7 @@ const handler = async (req, context) => {
35
try {
36
// We need to cache-bust the import because otherwise it will claim it
37
// doesn't exist if the user creates it after the server starts
38
- const nextMiddleware = await import(`../../middleware.js#${idx++}`)
+ const nextMiddleware = await import(`../../middleware.js#${++idx}`)
39
middleware = nextMiddleware.middleware
40
} catch (importError) {
41
// Error message is `Module not found "file://<path>/middleware.js#123456".` in Deno
0 commit comments