Skip to content
Snippets Groups Projects
Commit d219b491 authored by D4rkHeart's avatar D4rkHeart
Browse files

[Fix] Api adress in production

parent a82429ce
No related branches found
No related tags found
1 merge request!7Migration gest
'use strict' 'use strict'
// https://stackoverflow.com/questions/44750008/vuejs-configuration-using-a-global-variable
module.exports = { module.exports = {
'API_LOCATION': process.env.NODE_ENV === 'production' 'API_LOCATION': "/api",
? 'https://canap-gest.epfl.ch/api' 'LOGIN_REDIRECT': "/api/auth/login"
: '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',
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment