- docker-compose.yml with PostgreSQL, Redis, all services - nginx/nginx.conf reverse proxy configuration - services/whatsapp-core: package.json, tsconfig.json, Dockerfile - services/api-gateway: requirements.txt, Dockerfile, app/__init__.py - frontend: package.json, tsconfig.json, vite.config.ts, index.html, Dockerfile, nginx.conf Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
569 B
TypeScript
30 lines
569 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/auth': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
},
|
|
'/ws': {
|
|
target: 'http://localhost:3001',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
});
|