Spaces:
Running
Running
File size: 421 Bytes
d646dd7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const apiTarget = process.env.VITE_API_TARGET || 'http://127.0.0.1:8000'
export default defineConfig({
plugins: [react()],
base: '/static/workflow-studio/',
build: {
outDir: '../static/workflow-studio',
emptyOutDir: true,
manifest: true,
},
server: {
port: 5173,
proxy: {
'/api': apiTarget,
},
},
})
|