From e9b8258fd901b3b51faa38f11f5ca6b2e0079c36 Mon Sep 17 00:00:00 2001 From: Daniel McCrystal Date: Wed, 6 Aug 2025 23:44:06 -0400 Subject: [PATCH] getting there --- package.json | 3 ++- packages/server/src/index.ts | 11 ++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b7c90fc..01a6dd0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "version": "0.0.2", "scripts": { "dev": "pnpm --parallel dev", - "build": "pnpm run -F client build" + "build": "pnpm run -F client build", + "start": "pnpm run -F server start" } } diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index a8f8c42..ad1ca48 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -1,10 +1,15 @@ import { Hono } from "hono"; +import { serveStatic } from "hono/bun"; const app = new Hono(); +const isDev = Bun.env.HONO_ENV === "development"; -app.get("/", (c) => { - return c.text("Hello Hono!"); -}); +app.use( + "*", + serveStatic({ + path: "./dist", + }) +); console.log("server running"); export default app;