salary-benchmark/frontend/vite.config.js
DJP 468c936d30 Move URL subpath from /opt/ to /salary-benchmark/
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 20:06:56 -04:00

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,
},
},
},
})