fix(deploy): build web app for subpath deployment

- workflows use build:app instead of lib build

- inject VITE_APP_BASE_URL for prod/dev paths

- make vite base configurable via env

- update acceptance status for wiki compatibility
This commit is contained in:
2026-02-28 00:30:24 +08:00
parent 8803a35996
commit 92e482e854
4 changed files with 19 additions and 12 deletions

View File

@@ -17,10 +17,10 @@ jobs:
with:
node-version: '22'
- name: Install dependencies and build
- name: Install dependencies and build web app
run: |
npm install
npm run build
VITE_APP_BASE_URL=/yys-editor/ npm run build:app
- name: Deploy to temporary directory
uses: appleboy/scp-action@v0.1.6

View File

@@ -18,10 +18,10 @@ jobs:
with:
node-version: '22'
- name: Install dependencies and build
- name: Install dependencies and build web app
run: |
npm install
npm run build
VITE_APP_BASE_URL=/yys-editor-dev/ npm run build:app
- name: Deploy to temporary directory
uses: appleboy/scp-action@v0.1.6