import { createServer } from "vite"; import { fileURLToPath } from "node:url"; // A fixed asset-review server must not watch unrelated native build outputs. const root = fileURLToPath(new URL("../../", import.meta.url)); const server = await createServer({ root, server: { host: "127.0.0.1", port: 4208, strictPort: true, watch: { ignored: ["**/*"] } } }); await server.listen(); server.printUrls(); for (const signal of ["SIGINT", "SIGTERM"]) { process.once(signal, () => { void server.close().then(() => process.exit(0)); }); }