Files
dota-random-web/frontend/vite.config.ts
T
kwiialyssa edb4cd8613
CI/CD / Build (push) Successful in 5m59s
CI/CD / Frontend Build (push) Successful in 1m27s
CI/CD / Unit Tests (push) Failing after 1m12s
CI/CD / Docker (push) Skipped
CI/CD / Frontend Docker (push) Failing after 3m29s
feat(DRW-001) initial commit!
2026-09-13 20:37:48 +03:00

19 lines
482 B
TypeScript

import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
port: 5173,
// Mirrors what nginx does in production (see frontend/nginx.conf) so the
// app talks to a real backend the same way in dev and prod.
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
})