We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fb7af commit 57a6e7aCopy full SHA for 57a6e7a
vite-plugin-ruby/src/config.ts
@@ -90,7 +90,7 @@ function coerceConfigurationValues (config: ResolvedConfig, projectRoot: string,
90
const server: ServerOptions = { fs, host: config.host, https, port, strictPort: true }
91
92
if (booleanOption(config.skipProxy))
93
- server.origin = `${https ? 'https' : 'http'}://${config.host}:${config.port}`
+ server.origin = userConfig.server?.origin || `${https ? 'https' : 'http'}://${config.host}:${config.port}`
94
95
// Connect directly to the Vite dev server, rack-proxy does not proxy websocket connections.
96
const hmr = userConfig.server?.hmr ?? {}
0 commit comments