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 8e38be9 commit 4ac1103Copy full SHA for 4ac1103
bin/command.js
@@ -253,7 +253,9 @@ async function parseMiddleware( config, options ) {
253
const middleware = await Promise.all(
254
[ ...( config.middleware ?? [] ), ...( options.middleware ?? [] ) ].map(
255
async( mw ) => {
256
- const module = await import( pathToFileURL( resolve( process.cwd(), mw ) ) );
+ const module = await import(
257
+ pathToFileURL( resolve( process.cwd(), mw ) ).toString()
258
+ );
259
return module.default;
260
}
261
)
0 commit comments