Fixes DB conflict in prod

This commit is contained in:
pikiou
2021-11-18 17:05:27 +01:00
parent 3d63859412
commit 581393f78e
12 changed files with 856 additions and 817 deletions

View File

@@ -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" },

View File

@@ -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",
}