Spaces:
Running
Running
import { defineConfig } from 'vite' | |
import react from '@vitejs/plugin-react' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [react()], | |
server: { | |
port: 80, | |
proxy: { | |
'/api': { | |
target: 'http://backend:8000', | |
changeOrigin: true, | |
rewrite: (path) => path.replace(/^\/api/, '') | |
}, | |
'/audio-files': { | |
target: 'http://backend:8000', | |
changeOrigin: true | |
} | |
} | |
}, | |
build: { | |
outDir: 'dist', | |
assetsDir: 'assets', | |
emptyOutDir: true | |
} | |
}) | |