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

@@ -4,7 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Claude Code Usage Dashboard</title>
<link rel="stylesheet" crossorigin href="../ai-usage/index-cq4ce245.css"><script type="module" crossorigin src="../ai-usage/index-jqd5mhpf.js"></script></head>
<script src="./main.tsx" type="module" crossorigin></script>
</head>
<body>
<div id="root"></div>

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}`);