mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 22:06:29 +02:00
Fix api url in prod bug
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
const PORT = 4000
|
||||
const HOST_LOCALLY = true
|
||||
const HOST = process.env.INTRANET_HOST || "fo.parisestludique.fr"
|
||||
|
||||
export default {
|
||||
PORT,
|
||||
HOST: HOST_LOCALLY ? "localhost" : "fo.parisestludique.fr",
|
||||
API_URL:
|
||||
__SERVER__ || HOST_LOCALLY
|
||||
? `http://localhost:${PORT}`
|
||||
: `http://fo.parisestludique.fr:${PORT}`,
|
||||
HOST: "0.0.0.0",
|
||||
API_URL: `http://${HOST}:${PORT}`,
|
||||
}
|
||||
|
Reference in New Issue
Block a user