- Update .gitignore to include additional build artifacts, logs, and editor files - Modify package.json scripts for improved development workflow and remove unused scripts - Change Vite output directory to 'dist' for consistency - Simplify App.jsx by removing unused state and functions, enhancing readability - Adjust server.js to serve static files from the new 'dist' directory
27 lines
504 B
JavaScript
27 lines
504 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: 'dist',
|
|
rollupOptions: {
|
|
input: {
|
|
main: './frontend/index.html',
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/health': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|