fix: remove port in prod url apiv2 (#14343)
This commit is contained in:
1 parent
7001515a44
commit
86a7824ec9
1 file changed
+3
-1
@@ -11,7 +11,9 @@ const loadConfig = (): AppConfig => {
|
|||||||
port: Number(getEnv("API_PORT", "5555")),
|
port: Number(getEnv("API_PORT", "5555")),
|
||||||
path: getEnv("API_URL", "http://localhost"),
|
path: getEnv("API_URL", "http://localhost"),
|
||||||
url: `${getEnv("API_URL", "http://localhost")}${
|
url: `${getEnv("API_URL", "http://localhost")}${
|
||||||
process.env.API_PORT ? `:${Number(getEnv("API_PORT", "5555"))}` : ""
|
process.env.API_PORT && getEnv("NODE_ENV", "development") === "development"
|
||||||
|
? `:${Number(getEnv("API_PORT", "5555"))}`
|
||||||
|
: ""
|
||||||
}/api/v2`,
|
}/api/v2`,
|
||||||
},
|
},
|
||||||
db: {
|
db: {
|
||||||
|
|||||||
Reference in new issue
Block a user