Skip to content

Commit

Permalink
#27 Be able to configure BASE_URL on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe HAMERLING committed Dec 20, 2018
1 parent ecc5261 commit fb9d8eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Expand Up @@ -61,7 +61,7 @@ deploy_dev:
- npm install
- npm update
- git checkout -- .
- npm run build
- BASE_URL=/videoconf/ npm run build
- rm -fr /srv/vue-apps/${CI_PROJECT_NAME}/*
- cp -fr /srv/${CI_PROJECT_NAME}/dist/* /srv/vue-apps/${CI_PROJECT_NAME}/

Expand Down
1 change: 1 addition & 0 deletions vue.config.js
@@ -1,6 +1,7 @@
const path = require("path");

module.exports = {
baseUrl: process.env.NODE_ENV === "production" ? process.env.BASE_URL || "/" : "/",
transpileDependencies: ["vue-openpaas-components"],
configureWebpack: {
resolve: {
Expand Down

0 comments on commit fb9d8eb

Please sign in to comment.