Files
football-app/vite.config.js
henry d8fba41ea5 Initial commit: football competition standings viewer
Vite + React app using football-data.org API to display standings
and match details for 12 competitions. Supports competition switching,
team match history modal, and Vite proxy to handle CORS.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 07:33:50 +01:00

16 lines
330 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'https://api.football-data.org/v4',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},
})