Skip to content

Commit 9044dfc

Browse files
committed
chore: update base url for demo
1 parent 6a53a8c commit 9044dfc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/demo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
npm run build
2626
env:
2727
REACT_APP_BASE_URL: ${{ secrets.BACKEND_URL }}
28+
BASE_URL: "/react-vnc"
2829

2930
- name: Deploy to github.io
3031
uses: JamesIves/github-pages-deploy-action@v4

vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import react from '@vitejs/plugin-react'
33
import dts from 'vite-plugin-dts';
44
import { resolve } from 'path';
55

6+
const base = process.env.BASE_URL ?? '';
7+
68
// https://vite.dev/config/
79
export default defineConfig(({ mode }) => {
810
if (mode === 'app') {
@@ -16,7 +18,8 @@ export default defineConfig(({ mode }) => {
1618
publicDir: 'public/',
1719
build: {
1820
outDir: 'build',
19-
}
21+
},
22+
base,
2023
}
2124
}
2225
return {

0 commit comments

Comments
 (0)