feat: scaffold Hono server with auth and health check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sanju Sivalingam
2026-02-17 14:07:19 +05:30
parent 1e9e1f7e29
commit bc014fd587
9 changed files with 126 additions and 0 deletions

9
server/src/env.ts Normal file
View File

@@ -0,0 +1,9 @@
export const env = {
DATABASE_URL: process.env.DATABASE_URL!,
PORT: parseInt(process.env.PORT || "8080"),
CORS_ORIGIN: process.env.CORS_ORIGIN || "http://localhost:5173",
};
if (!env.DATABASE_URL) {
throw new Error("DATABASE_URL is not set");
}