We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3481960 + 88bb99e commit d4b1a30Copy full SHA for d4b1a30
1 file changed
usage/vite.config.js
@@ -1,10 +1,13 @@
1
-import { defineConfig } from 'vite'
2
-import react from '@vitejs/plugin-react'
+import { defineConfig } from 'vite';
+import react from '@vitejs/plugin-react';
3
+
4
+const base = process.env.GITHUB_ACTIONS ? '/react-vtk-js/' : '/';
5
6
// https://vitejs.dev/config/
7
export default defineConfig({
8
+ base,
9
plugins: [react()],
10
server: {
- port: 9000
- }
-})
11
+ port: 9000,
12
+ },
13
+});
0 commit comments