All checks were successful
Build and Push Frontend / build (push) Successful in 19s
- Add @tailwindcss/vite plugin for proper Tailwind processing - Change 'start' script from 'vite preview' to 'bun server.ts' (production-ready) - Remove postcss.config.mjs (handled by Vite plugin) - server.ts already configured to serve from dist/ directory Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
29 lines
608 B
TypeScript
29 lines
608 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 3001,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend.control-plane.svc.cluster.local:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: false,
|
|
minify: 'esbuild',
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|