We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a53a8c commit 9044dfcCopy full SHA for 9044dfc
.github/workflows/demo.yml
@@ -25,6 +25,7 @@ jobs:
25
npm run build
26
env:
27
REACT_APP_BASE_URL: ${{ secrets.BACKEND_URL }}
28
+ BASE_URL: "/react-vnc"
29
30
- name: Deploy to github.io
31
uses: JamesIves/github-pages-deploy-action@v4
vite.config.ts
@@ -3,6 +3,8 @@ import react from '@vitejs/plugin-react'
3
import dts from 'vite-plugin-dts';
4
import { resolve } from 'path';
5
6
+const base = process.env.BASE_URL ?? '';
7
+
8
// https://vite.dev/config/
9
export default defineConfig(({ mode }) => {
10
if (mode === 'app') {
@@ -16,7 +18,8 @@ export default defineConfig(({ mode }) => {
16
18
publicDir: 'public/',
17
19
build: {
20
outDir: 'build',
- }
21
+ },
22
+ base,
23
}
24
return {
0 commit comments