- backend: HOST env (default 127.0.0.1, dev-safe; 0.0.0.0 in container) - frontend: VITE_BASE drives base/assetsDir/manifest for portal embedding - backward compatible: no env => identical to previous behavior
7 lines
266 B
TypeScript
7 lines
266 B
TypeScript
import { buildApp } from "./app.js";
|
|
import { loadConfig } from "./config.js";
|
|
const config = loadConfig(process.env);
|
|
const app = buildApp(config);
|
|
app.listen({ port: config.port, host: config.host })
|
|
.then((addr) => console.log(`backend listening on ${addr}`));
|