Allow deadhead.belowland.com as a Vite dev and preview host
CI / check (push) Successful in 7m58s
Details
CI / check (push) Successful in 7m58s
Details
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9d72cace13
commit
2bbcaa4d05
|
|
@ -82,6 +82,9 @@ function buildInfo() {
|
||||||
return { __APP_VERSION__: JSON.stringify(version), __APP_BUILD__: JSON.stringify(build) };
|
return { __APP_VERSION__: JSON.stringify(version), __APP_BUILD__: JSON.stringify(build) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Host names the dev and preview servers answer to, besides localhost and IP addresses. */
|
||||||
|
const ALLOWED_HOSTS = ["deadhead.belowland.com"];
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
define: buildInfo(),
|
define: buildInfo(),
|
||||||
plugins: [react(), tailwindcss(), omitSourceArt(), pwa],
|
plugins: [react(), tailwindcss(), omitSourceArt(), pwa],
|
||||||
|
|
@ -90,5 +93,7 @@ export default defineConfig({
|
||||||
// IPv4 only, so target 127.0.0.1 rather than localhost.
|
// IPv4 only, so target 127.0.0.1 rather than localhost.
|
||||||
// API_PROXY_TARGET lets a second dev stack (e.g. screenshots) use another API port.
|
// API_PROXY_TARGET lets a second dev stack (e.g. screenshots) use another API port.
|
||||||
proxy: { "/api": process.env.API_PROXY_TARGET ?? "http://127.0.0.1:3000" },
|
proxy: { "/api": process.env.API_PROXY_TARGET ?? "http://127.0.0.1:3000" },
|
||||||
|
allowedHosts: ALLOWED_HOSTS,
|
||||||
},
|
},
|
||||||
|
preview: { allowedHosts: ALLOWED_HOSTS },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue