This commit is contained in:
2025-08-07 19:16:57 -04:00
parent e9b8258fd9
commit a90a914d2f
3 changed files with 12 additions and 11 deletions

View File

@@ -2,14 +2,15 @@ import { Hono } from "hono";
import { serveStatic } from "hono/bun";
const app = new Hono();
const isDev = Bun.env.HONO_ENV === "development";
const isDev = Bun.env.NODE_ENV === "development";
const isProd = Bun.env.NODE_ENV === "production";
app.use(
"*",
serveStatic({
path: "./dist",
})
);
isProd &&
app.use(
"*",
serveStatic({
root: "./dist",
})
);
console.log("server running");
export default app;