File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3131 "scripts" : {
3232 "start" : " vite" ,
3333 "production" : " json-server --watch src/db.json -p 3000 --host 0.0.0.0 --static build" ,
34- "build" : " node build" ,
34+ "build" : " vite build" ,
3535 "test" : " react-scripts test --env=jsdom" ,
3636 "eject" : " react-scripts eject" ,
3737 "lint" : " eslint \" **/*.{js,jsx}\" " ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import theme from '../containers/styles/theme';
1111import { SettingsContext } from '../containers/ContextProvider/SettingsProvider' ;
1212import { actionTypes } from '../containers/ContextProvider/reducer' ;
1313
14- const isGhPages = process . env . VITE_GH_PAGES === 'true' ;
14+ const isGhPages = process . env . VITE_GH_PAGES . trim ( ) === 'true' ;
1515const Router = isGhPages ? HashRouter : BrowserRouter ;
1616const redirect = isGhPages ? '/request-generator/#/index' : '/index' ;
1717const App = ( ) => {
Original file line number Diff line number Diff line change @@ -21,4 +21,8 @@ export default defineConfig({
2121 open : false ,
2222 host : true
2323 } ,
24- } )
24+ build : {
25+ outDir : 'build' ,
26+ emptyOutDir : true , // also necessary
27+ } ,
28+ } )
You can’t perform that action at this time.
0 commit comments