mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Adjusts what gets set as default env values (#195)
This commit is contained in:
parent
81bd5265fe
commit
87b052e117
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
APP_SECRET=Ck7Rt1uiy5WGbrTFj1HBjymbBoA6zqih
|
APP_SECRET=Ck7Rt1uiy5WGbrTFj1HBjymbBoA6zqih
|
||||||
BASE_URL=http://localhost:3000
|
BASE_URL=/
|
||||||
UI_PORT=3000
|
UI_PORT=3000
|
||||||
API_BASE_URL=http://localhost:3000/api
|
|
||||||
|
|
||||||
DB_CLIENT=mysql2
|
DB_CLIENT=mysql2
|
||||||
DB_HOST=mysql
|
DB_HOST=mysql
|
||||||
|
|
|
@ -4,6 +4,7 @@ declare global {
|
||||||
|
|
||||||
export const env = {
|
export const env = {
|
||||||
api: {
|
api: {
|
||||||
baseURL: window.API_BASE_URL ?? process.env.REACT_APP_API_BASE_URL ?? '/api',
|
baseURL: window.API_BASE_URL
|
||||||
|
|| (process.env.REACT_APP_API_BASE_URL ?? '/api'),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue