From 87c1be7ea3dcdcdca11db472ce4faa8bd2ba515c Mon Sep 17 00:00:00 2001 From: local Date: Sun, 31 Mar 2024 19:08:20 +0800 Subject: [PATCH] base is var --- .github/workflows/nodejs.yml | 1 + .vuepress/config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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: {