Skip to content

Commit

Permalink
Fix build configuration to use Vite directly instead of react-router …
Browse files Browse the repository at this point in the history
…build
  • Loading branch information
openhands-agent committed Jan 30, 2025
1 parent eb594d9 commit affbda5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"scripts": {
"dev": "npm run make-i18n && cross-env VITE_MOCK_API=false react-router dev",
"dev:mock": "npm run make-i18n && cross-env VITE_MOCK_API=true react-router dev",
"build": "npm run make-i18n && tsc && react-router build",
"build": "npm run make-i18n && tsc && vite build",
"start": "npx sirv-cli build/ --single",
"test": "vitest run",
"test:e2e": "playwright test",
Expand Down
3 changes: 0 additions & 3 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export default defineConfig(({ mode }) => {
minify: 'esbuild',
outDir: 'build',
rollupOptions: {
input: {
main: './index.html'
},
output: {
format: 'es',
chunkFileNames: 'assets/[name]-[hash].js',
Expand Down

0 comments on commit affbda5

Please sign in to comment.