Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d9ba9bb

Browse files
committedMar 13, 2023
chore: remove slash because windows
1 parent 177c373 commit d9ba9bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/runtime/src/templates/edge/next-dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const handler = async (req, context) => {
3939
middleware = nextMiddleware.middleware
4040
} catch (importError) {
4141
// Error message is `Module not found "file://<path>/middleware.js#123456".` in Deno
42-
if (importError.code === 'ERR_MODULE_NOT_FOUND' && importError.message.includes(`/middleware.js#${idx}`)) {
42+
if (importError.code === 'ERR_MODULE_NOT_FOUND' && importError.message.includes(`middleware.js#${idx}`)) {
4343
// No middleware, so we silently return
4444
return
4545
}

0 commit comments

Comments
 (0)
Please sign in to comment.