Files
rail-game/frontend/vite.config.ts
zwitschi 1099a738a3 feat: add Playwright configuration and initial e2e test for authentication
- Created Playwright configuration file to set up testing environment.
- Added a new e2e test for user authentication in login.spec.ts.
- Updated tsconfig.node.json to include playwright.config.ts.
- Enhanced vite.config.ts to include API proxying for backend integration.
- Added a placeholder for last run test results in .last-run.json.
2025-10-11 17:25:38 +02:00

27 lines
482 B
TypeScript

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
const backendUrl = process.env.VITE_BACKEND_URL ?? 'http://localhost:8000';
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
open: true,
proxy: {
'/api': {
target: backendUrl,
changeOrigin: true,
},
},
},
preview: {
proxy: {
'/api': {
target: backendUrl,
changeOrigin: true,
},
},
},
});