Skip to content

Commit d4b1a30

Browse files
authored
Merge pull request #64 from osiux/fix/gh-pages
add base url to vite build
2 parents 3481960 + 88bb99e commit d4b1a30

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

usage/vite.config.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
3+
4+
const base = process.env.GITHUB_ACTIONS ? '/react-vtk-js/' : '/';
35

46
// https://vitejs.dev/config/
57
export default defineConfig({
8+
base,
69
plugins: [react()],
710
server: {
8-
port: 9000
9-
}
10-
})
11+
port: 9000,
12+
},
13+
});

0 commit comments

Comments
 (0)