forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
6114a2295f
commit
69809f7228
593 files changed
+903643
-40774
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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)); });
|
||||
}
|
||||
Reference in new issue
Block a user