28 lines
640 B
TypeScript
28 lines
640 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
'/api-ingestion': {
|
|
target: 'http://localhost:8001',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api-ingestion/, ''),
|
|
},
|
|
'/api-mcp': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api-mcp/, ''),
|
|
},
|
|
},
|
|
},
|
|
})
|