From d219b491caa42db3819a0e99442757c414394c45 Mon Sep 17 00:00:00 2001 From: D4rkHeart <leonardo.surdez@gmail.com> Date: Tue, 12 Sep 2023 16:51:10 +0200 Subject: [PATCH] [Fix] Api adress in production --- Gestion/src/config/index.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Gestion/src/config/index.js b/Gestion/src/config/index.js index a585344..5174046 100644 --- a/Gestion/src/config/index.js +++ b/Gestion/src/config/index.js @@ -1,11 +1,5 @@ 'use strict' -// https://stackoverflow.com/questions/44750008/vuejs-configuration-using-a-global-variable module.exports = { - 'API_LOCATION': process.env.NODE_ENV === 'production' - ? 'https://canap-gest.epfl.ch/api' - : 'http://localhost:8181/api', - 'LOGIN_REDIRECT': process.env.NODE_ENV === 'production' - ? 'https://canap-gest.epfl.ch/api/auth/login' - : 'http://localhost:8181/api/auth/login', - + 'API_LOCATION': "/api", + 'LOGIN_REDIRECT': "/api/auth/login" } -- GitLab