diff --git a/server/.env.sample b/server/.env.sample index 6e54204..67c5cde 100644 --- a/server/.env.sample +++ b/server/.env.sample @@ -1,5 +1,5 @@ DATABASE_URL=postgresql://postgres:password@localhost:5432/itsuhima_dev CORS_ALLOW_ORIGINS=http://localhost:5173 DOMAIN=localhost -NODE_ENV=dev # dev or prod +NODE_ENV=dev # dev or production COOKIE_SECRET=your-random-secret-key-for-development diff --git a/server/src/main.ts b/server/src/main.ts index 4142500..69f937f 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -52,7 +52,7 @@ serve( }, ); -const isProduction = process.env.NODE_ENV === "prod"; +const isProduction = process.env.NODE_ENV === "production"; export const cookieOptions = { path: "/",