Revert "vite.config.ts: actually read PORT/ALLOWED_HOST from env"
This reverts commit 1146dc2f6a9c8551007c3761f3539fb73c619800.
This commit is contained in:
parent
1146dc2f6a
commit
324c9e064b
@ -8,19 +8,13 @@ import { devtools } from "@tanstack/devtools-vite";
|
|||||||
import { leanWorkerBundle } from "./vite-plugin-lean-worker-bundle";
|
import { leanWorkerBundle } from "./vite-plugin-lean-worker-bundle";
|
||||||
|
|
||||||
export default defineConfig(() => {
|
export default defineConfig(() => {
|
||||||
// PORT/ALLOWED_HOST are documented self-host knobs (SELF_HOSTING_DOCKER.md,
|
const port = 3001;
|
||||||
// compose.yaml) but were never actually read here — every deployment was
|
|
||||||
// silently stuck on port 3001 and this one hardcoded domain, breaking any
|
|
||||||
// second instance on a different domain or port. Defaults keep existing
|
|
||||||
// deployments that don't set these working exactly as before.
|
|
||||||
const port = Number(process.env.PORT) || 3001;
|
|
||||||
|
|
||||||
const showDevtools = false;
|
const showDevtools = false;
|
||||||
|
|
||||||
const allowedHosts = [
|
const allowedHosts = [
|
||||||
"seo.thedomainnest.com",
|
"seo.thedomainnest.com",
|
||||||
process.env.ALLOWED_HOST,
|
];
|
||||||
].filter((host): host is string => Boolean(host));
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
envPrefix: [
|
envPrefix: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user