File size: 618 Bytes
7ac86fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
  }
})