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 096ec60 commit 8373d2aCopy full SHA for 8373d2a
vite.config.ts
@@ -89,7 +89,9 @@ export default defineConfig(({ mode }) => ({
89
host: devServerHost, // Configurable via MUX_VITE_HOST (defaults to 127.0.0.1 for security)
90
port: devServerPort,
91
strictPort: true,
92
- allowedHosts: ["localhost", "127.0.0.1"],
+ // If MUX_VITE_HOST is set (e.g. to 0.0.0.0 for remote dev), we must allow all hosts
93
+ // otherwise Vite blocks the request
94
+ allowedHosts: process.env.MUX_VITE_HOST ? true : ["localhost", "127.0.0.1"],
95
sourcemapIgnoreList: () => false, // Show all sources in DevTools
96
97
watch: {
0 commit comments