Skip to content

Commit f5b520b

Browse files
committed
fix: properly pass vitePluginUsage
1 parent 9cb4101 commit f5b520b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

reverse-proxy.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const config: ReverseProxyOptions = {
1919
// to: 'test.local',
2020
// },
2121
],
22+
vitePluginUsage: true,
2223
verbose: false,
2324
}
2425

src/start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ async function createProxyServer(
483483
export async function setupReverseProxy(options: ProxySetupOptions): Promise<void> {
484484
debugLog('setup', `Setting up reverse proxy: ${JSON.stringify(options)}`, options.verbose)
485485

486-
const { from, to, fromPort, sourceUrl, ssl, verbose, etcHostsCleanup, portManager } = options
486+
const { from, to, fromPort, sourceUrl, ssl, verbose, etcHostsCleanup, vitePluginUsage, portManager } = options
487487
const httpPort = 80
488488
const httpsPort = 443
489489
const hostname = '0.0.0.0'
@@ -521,7 +521,7 @@ export async function setupReverseProxy(options: ProxySetupOptions): Promise<voi
521521
log.info(`You can use 'sudo lsof -i :${targetPort}' (Unix) or 'netstat -ano | findstr :${targetPort}' (Windows) to check what's using the port.`)
522522
}
523523

524-
await createProxyServer(from, to, fromPort, finalPort, hostname, sourceUrl, ssl, verbose)
524+
await createProxyServer(from, to, fromPort, finalPort, hostname, sourceUrl, ssl, vitePluginUsage, verbose)
525525
}
526526
catch (err) {
527527
debugLog('setup', `Setup failed: ${err}`, verbose)

0 commit comments

Comments
 (0)