af2c01dbee
- docker-compose.dev.yml: MongoDB 7, tek düğümlü replica set (port 27020) - Backend: Axum + tokio, GET /api/health - Frontend: React + TypeScript + Vite, /api proxy, geçici durum ekranı - Kök package.json: npm run dev ile DB + backend + frontend - backend/api.http örnek istekler Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
354 B
TypeScript
16 lines
354 B
TypeScript
import react from '@vitejs/plugin-react'
|
||
import { defineConfig } from 'vite'
|
||
|
||
// https://vite.dev/config/
|
||
export default defineConfig({
|
||
plugins: [react()],
|
||
server: {
|
||
port: 5173,
|
||
strictPort: true,
|
||
// /api istekleri Rust backend'e yönlenir → aynı origin, CORS gerekmez
|
||
proxy: {
|
||
'/api': 'http://localhost:8080',
|
||
},
|
||
},
|
||
})
|