mirror of
https://github.com/OpenBMB/ChatDev.git
synced 2026-04-25 19:28:09 +00:00
21 lines
436 B
JavaScript
Executable File
21 lines
436 B
JavaScript
Executable File
import { defineConfig, loadEnv } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, process.cwd(), '')
|
|
const target = env.VITE_API_BASE_URL || 'http://localhost:8000'
|
|
|
|
return {
|
|
plugins: [vue()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: target,
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|