diff --git a/Gestion/src/config/index.js b/Gestion/src/config/index.js index a585344c8fa020ec6e4ea1f3e5e28a29455a5b8e..517404671c106336f569e465fcfd5b2f2df1d7a1 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" } diff --git a/Gestion/vue.config.js b/Gestion/vue.config.js index 6306ed21ff1f34c8fc6902c1f0fccf8aad8dc829..3de9865846af98afafe86bf647122bab3494eef0 100644 --- a/Gestion/vue.config.js +++ b/Gestion/vue.config.js @@ -1,18 +1,8 @@ module.exports = { devServer: { - host: 'localhost', port: 8080, - https: false - //host: 'canap-gest-dev.local', - //port: 8080, - //https: true - } -} - -// module.exports = { -// devServer: { -// host: 'canap-gest-dev.local', -// port: 8080, -// https: true -// } -// } \ No newline at end of file + https: false, + disableHostCheck: true, + }, + publicPath: "/gest" +} \ No newline at end of file