mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 22:06:29 +02:00
Fixes DB conflict in prod
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export default {
|
||||
HOST: "localhost",
|
||||
PORT: 3000,
|
||||
API_URL: "",
|
||||
API_URL: "http://localhost:3000",
|
||||
GOOGLE_SHEET_ID: "1pMMKcYx6NXLOqNn6pLHJTPMTOLRYZmSNg2QQcAu7-Pw",
|
||||
APP: {
|
||||
htmlAttributes: { lang: "en" },
|
||||
|
@@ -1,3 +1,9 @@
|
||||
import os from "os"
|
||||
|
||||
const hostname = os.hostname()
|
||||
|
||||
export default {
|
||||
PORT: 4000,
|
||||
HOST: hostname === "ns3075300" ? "fo.parisestludique.fr" : "localhost",
|
||||
API_URL: hostname === "ns3075300" ? "http://fo.parisestludique.fr" : "http://localhost:4000",
|
||||
}
|
||||
|
Reference in New Issue
Block a user