Spaces:
Running
Running
| 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 | |
| } | |
| }) |