diff --git a/Jenkinsfile b/Jenkinsfile index 1f93347..c2aecc2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,6 +73,7 @@ DEPLOY_HOST_PRD: 'bxtsvctwas004.in.dolden.net', DEPLOY_DIR: '/var/www/html/dummyvue', DEPLOY_CRED: 'bot-ci-dgm-rsa', + BASE_URL: '/dummyvue/' ], inLabels: [ 'centos7', ], onLabels: [ default: 'master', docker: 'docker', ], diff --git a/vite.config.ts b/vite.config.ts index 315212d..fc4159a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,10 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +const BASE_URL = process.env.BASE_URL || ''; + // https://vitejs.dev/config/ export default defineConfig({ + base: `${BASE_URL}`, plugins: [vue()] })