mirror of
https://github.com/cdr/code-server.git
synced 2025-12-09 09:55:30 +01:00
This commit introduces the necessary files and configurations to deploy the Cursor AI IDE to Cloudflare Workers and Pages. It includes setup scripts, backend and frontend code adjustments, and wrangler configuration for seamless deployment. Co-authored-by: logato7838 <logato7838@vsihay.com>
26 lines
No EOL
481 B
JavaScript
26 lines
No EOL
481 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: false,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
vendor: ['react', 'react-dom'],
|
|
monaco: ['@monaco-editor/react'],
|
|
icons: ['lucide-react']
|
|
}
|
|
}
|
|
}
|
|
},
|
|
define: {
|
|
'process.env': {}
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
host: true
|
|
}
|
|
}) |