| 123456789101112131415161718 |
- import { defineConfig } from 'vite'
- import react from '@vitejs/plugin-react'
- // 后端运行在 8080,前端开发期通过代理避免跨域
- export default defineConfig({
- plugins: [react()],
- base: '/content-similarity-recall/', // CDN 部署路径
- server: {
- port: 5173,
- host: true,
- proxy: {
- '/videoVector': {
- target: 'http://localhost:8080',
- changeOrigin: true,
- },
- },
- },
- })
|