feat: scaffold Hono server with auth and health check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
9
server/src/env.ts
Normal file
9
server/src/env.ts
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user