add support for production

This commit is contained in:
YouXam
2025-08-27 20:42:16 +08:00
parent 5e5c269346
commit 36fdbd0ef4
2 changed files with 6 additions and 5 deletions

View File

@@ -159,10 +159,10 @@ Bun.serve({
}
}
},
// development: {
// hmr: true,
// console: true,
// }
development: {
hmr: Bun.env.DEV === "development",
console: Bun.env.DEV === "development"
}
});
console.log(`Server running on http://localhost:${port}`);