odyssey-frontend / vite.config.ts
Fraser's picture
Initial backend setup with Gradio
7ac86fa
raw
history blame contribute delete
618 Bytes
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { fileURLToPath, URL } from 'url'
// https://vite.dev/config/
export default defineConfig({
plugins: [svelte()],
resolve: {
alias: {
'$lib': fileURLToPath(new URL('./src/lib', import.meta.url))
}
},
server: {
proxy: {
// Proxy API requests to FastAPI backend
'/upload': 'http://localhost:8000',
'/video': 'http://localhost:8000',
'/spaces': 'http://localhost:8000'
}
},
build: {
outDir: 'dist' // Build to dist directory for Docker multi-stage build
}
})