19 lines
421 B
JavaScript
19 lines
421 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// VITE_BASE is set at build time for prod (e.g. "/salary-benchmark/"); defaults to "/" for dev
|
|
const base = process.env.VITE_BASE || '/'
|
|
|
|
export default defineConfig({
|
|
base,
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://app:8000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|