Rework deploy scripts to correctly build and handle multiple environments.

This commit is contained in:
Jonathan Bernard
2019-09-26 23:23:32 -05:00
parent cfd5463b4d
commit bfcce67788
7 changed files with 21 additions and 6 deletions

View File

@ -1,3 +0,0 @@
VUE_APP_PM_API_BASE=https://pm.jdb-labs.com/api
VUE_APP_LOG_LEVEL=INFO
VUE_APP_API_LOG_LEVEL=ERROR

1
web/.env.production Symbolic link
View File

@ -0,0 +1 @@
../.env.prod

View File

@ -8,7 +8,10 @@ const VERSION = {
module.exports = {
devServer: {
proxy: {
'/api': { target: 'http://localhost:8081' }
'/api': {
pathRewrite: { '^/api': '/v0' },
target: 'http://localhost:8081'
}
},
host: 'localhost',
disableHostCheck: true