22301008 | af17315 | 2025-06-15 10:46:25 +0800 | [diff] [blame] | 1 | import { defineConfig } from 'vite' |
| 2 | import react from '@vitejs/plugin-react' |
| 3 | |
| 4 | // https://vite.dev/config/ |
| 5 | export default defineConfig({ |
| 6 | plugins: [react()], |
| 7 | server: { |
| 8 | proxy: { |
| 9 | '/search': { |
| 10 | target: 'http://localhost:5000', |
| 11 | changeOrigin: true, |
| 12 | }, |
| 13 | '/recommend_tags': { |
| 14 | target: 'http://localhost:5000', |
| 15 | changeOrigin: true, |
| 16 | }, |
| 17 | '/user_tags': { |
| 18 | target: 'http://localhost:5000', |
| 19 | changeOrigin: true, |
| 20 | }, |
| 21 | '/tags': { |
| 22 | target: 'http://localhost:5000', |
| 23 | changeOrigin: true, |
| 24 | }, |
| 25 | '/user_based_recommend': { |
| 26 | target: 'http://localhost:5000', |
| 27 | changeOrigin: true, |
| 28 | }, |
| 29 | '/word2vec_status': { |
| 30 | target: 'http://localhost:5000', |
| 31 | changeOrigin: true, |
| 32 | }, |
| 33 | '/debug_search': { |
| 34 | target: 'http://localhost:5000', |
| 35 | changeOrigin: true, |
| 36 | }, |
| 37 | } |
| 38 | } |
| 39 | }) |