Skip to content

Commit a9c758e

Browse files
committed
update virtual module name
1 parent 4370930 commit a9c758e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default defineNuxtModule<ModuleOptions>({
4040

4141
if (Array.isArray(finalConfig.options)) {
4242
finalConfig.options.forEach((options, index) => {
43-
const handler = `#proxy-handler-${hash(objectHash(options))}`
43+
const handler = `#http-proxy/${hash(objectHash(options))}`
4444
nitroConfig.virtual![handler] = createProxyMiddleware(options, index)
4545

4646
addServerHandler({
@@ -50,7 +50,7 @@ export default defineNuxtModule<ModuleOptions>({
5050
})
5151
}
5252
else {
53-
const handler = '#proxy-handler'
53+
const handler = `#http-proxy/${hash(objectHash(finalConfig.options))}`
5454
nitroConfig.virtual[handler] = createProxyMiddleware(finalConfig.options)
5555

5656
addServerHandler({

0 commit comments

Comments
 (0)