File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/open-next/src/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export default async function middlewareHandler(
2929) : Promise < Response > {
3030 if ( ! _module ) {
3131 // We use await import here so that we are sure that it is loaded after AsyncLocalStorage is defined on globalThis
32- // TODO: We will probably need to change this at build time when used in a monorepo (or if the location changes)
32+ // We need both await here, same way as in
3333 //@ts -expect-error - This file should be bundled with esbuild
34- _module = ( await import ( "./.next/server/middleware.js" ) ) . default ;
34+ _module = await ( await import ( "./.next/server/middleware.js" ) ) . default ;
3535 }
3636 const adapterFn = _module ! . default || _module ;
3737 const result = await adapterFn ( {
You can’t perform that action at this time.
0 commit comments