22 lines
490 B
TypeScript
22 lines
490 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
// Proxy API requests to Docker nginx (which proxies to API container)
|
|
'/api': {
|
|
target: 'http://localhost:80',
|
|
changeOrigin: true,
|
|
},
|
|
// Proxy file requests
|
|
'/files': {
|
|
target: 'http://localhost:80',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|