getting there

This commit is contained in:
2025-08-06 23:44:06 -04:00
parent 839d596b55
commit e9b8258fd9
2 changed files with 10 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
"version": "0.0.2", "version": "0.0.2",
"scripts": { "scripts": {
"dev": "pnpm --parallel dev", "dev": "pnpm --parallel dev",
"build": "pnpm run -F client build" "build": "pnpm run -F client build",
"start": "pnpm run -F server start"
} }
} }

View File

@@ -1,10 +1,15 @@
import { Hono } from "hono"; import { Hono } from "hono";
import { serveStatic } from "hono/bun";
const app = new Hono(); const app = new Hono();
const isDev = Bun.env.HONO_ENV === "development";
app.get("/", (c) => { app.use(
return c.text("Hello Hono!"); "*",
}); serveStatic({
path: "./dist",
})
);
console.log("server running"); console.log("server running");
export default app; export default app;