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>({
43
43
44
44
if ( Array . isArray ( finalConfig . options ) ) {
45
45
finalConfig . options . forEach ( ( options , index ) => {
46
- const handler = `#http-proxy/${ hash ( objectHash ( options ) ) } `
46
+ const handler = `#http-proxy/${ hash ( objectHash ( options ) ) } .mjs `
47
47
nitroConfig . virtual ! [ handler ] = createProxyMiddleware ( options , index )
48
48
49
49
addServerHandler ( {
@@ -53,7 +53,7 @@ export default defineNuxtModule<ModuleOptions>({
53
53
} )
54
54
}
55
55
else {
56
- const handler = `#http-proxy/${ hash ( objectHash ( finalConfig . options ) ) } `
56
+ const handler = `#http-proxy/${ hash ( objectHash ( finalConfig . options ) ) } .mjs `
57
57
nitroConfig . virtual [ handler ] = createProxyMiddleware ( finalConfig . options )
58
58
59
59
addServerHandler ( {
You can’t perform that action at this time.
0 commit comments