mirror of
https://github.com/andwati/order-service.git
synced 2026-10-18 02:12:53 +00:00
deploy on render
This commit is contained in:
@@ -2,3 +2,4 @@ NODE_ENV=
|
||||
PORT=
|
||||
MONGO_URI=
|
||||
JWT_SECRET=
|
||||
API_URL=
|
||||
@@ -15,6 +15,7 @@ function requireEnv(key: string): string {
|
||||
export const env = {
|
||||
nodeEnv: process.env.NODE_ENV ?? "development",
|
||||
port: Number(process.env.PORT) ?? 3000,
|
||||
API_URL: process.env.API_URL ?? "http://localhost:3000",
|
||||
|
||||
mongoUri: requireEnv("MONGO_URI"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user