Some checks failed
CI/CD Pipeline / Backend Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Tests (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
E2E Tests / E2E Tests - ${{ github.event.inputs.environment || 'staging' }} (push) Has been cancelled
E2E Tests / Notify Results (push) Has been cancelled
Dependency Updates / Update Dependencies (push) Has been cancelled
[Restore from backup: vip-coordinator-backup-2025-07-21-18-13-I got Claude Code]
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
],
|
|
css: {
|
|
postcss: './postcss.config.mjs',
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
allowedHosts: [
|
|
'localhost',
|
|
'127.0.0.1'
|
|
],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
// Only proxy specific auth endpoints, not the callback route
|
|
'/auth/setup': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/auth/google/url': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/auth/google/exchange': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/auth/me': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/auth/logout': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
'/auth/status': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|