diff --git a/.github/workflows/frontend.deploy.docs.yml b/.github/workflows/frontend.deploy.docs.yml index a79962e..782c6c5 100644 --- a/.github/workflows/frontend.deploy.docs.yml +++ b/.github/workflows/frontend.deploy.docs.yml @@ -17,4 +17,5 @@ jobs: #TARGET_REPO: username/repo #TARGET_BRANCH: master BUILD_SCRIPT: npm install && npm run docs:build - BUILD_DIR: build/docs/ \ No newline at end of file + BUILD_DIR: build/docs/ + VUEPRESS_BASE: "/boilerplate-frontend/" \ No newline at end of file diff --git a/.vuepress/config.ts b/.vuepress/config.ts index 8dcb70b..3789134 100644 --- a/.vuepress/config.ts +++ b/.vuepress/config.ts @@ -4,5 +4,5 @@ export default defineUserConfig({ title: 'IT4C Frontend Boilerplate Documentation', description: 'IT4C Frontend Boilerplate Documentation', dest: 'build/docs', - base: '/boilerplate-frontend/', + base: process.env.VUEPRESS_BASE ?? '/', })