diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 971d3def..6ed5f7c4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -18,6 +18,7 @@ jobs: - name: Install and Build env: NODE_OPTIONS: --openssl-legacy-provider + BASE: ${{ vars.BASE }} run: | yarn install yarn build diff --git a/.vuepress/config.js b/.vuepress/config.js index 819f7703..4b659567 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -167,7 +167,7 @@ function i18nSidebar(locale) { } module.exports = { - base: "/v2ray-step-by-step/", + base: process.env.BASE || "/", title: '新 V2Ray 白话文指南', description: 'Just playing around', locales: {