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