code-server/cursor-fullstack/cloudflare/frontend/vite.config.js
Cursor Agent e5bfb02460 Refactor: Simplify frontend code and dependencies
This commit refactors the frontend code by removing unnecessary meta tags, simplifying CSS, and updating dependencies in package.json and vite.config.js. It also streamlines the App component by removing unused state and props, and improving the loading and error handling.

Co-authored-by: fekofal332 <fekofal332@reaxu.com>
2025-10-13 13:24:25 +00:00

30 lines
594 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': {
target: 'https://cursor-backend.workers.dev',
changeOrigin: true,
secure: true
}
}
},
build: {
outDir: 'dist',
sourcemap: false,
minify: 'terser',
chunkSizeWarningLimit: 1000,
rollupOptions: {
output: {
manualChunks: {
vendor: ['react', 'react-dom'],
monaco: ['@monaco-editor/react']
}
}
}
}
})