File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default defineNuxtModule<ModuleOptions>({
4343
4444 if ( Array . isArray ( finalConfig . options ) ) {
4545 finalConfig . options . forEach ( ( options , index ) => {
46- const handler = `#http-proxy/${ hash ( objectHash ( options ) ) } `
46+ const handler = `#http-proxy/${ hash ( objectHash ( options ) ) } .mjs `
4747 nitroConfig . virtual ! [ handler ] = createProxyMiddleware ( options , index )
4848
4949 addServerHandler ( {
@@ -53,7 +53,7 @@ export default defineNuxtModule<ModuleOptions>({
5353 } )
5454 }
5555 else {
56- const handler = `#http-proxy/${ hash ( objectHash ( finalConfig . options ) ) } `
56+ const handler = `#http-proxy/${ hash ( objectHash ( finalConfig . options ) ) } .mjs `
5757 nitroConfig . virtual [ handler ] = createProxyMiddleware ( finalConfig . options )
5858
5959 addServerHandler ( {
You can’t perform that action at this time.
0 commit comments