import { defineConfig } from 'vite' | |
import react from '@vitejs/plugin-react' | |
// https://vite.dev/config/ | |
export default defineConfig({ | |
plugins: [react()], | |
server: { | |
proxy: { | |
'/search': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
'/recommend_tags': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
'/user_tags': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
'/tags': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
'/user_based_recommend': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
'/word2vec_status': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
'/debug_search': { | |
target: 'http://localhost:5000', | |
changeOrigin: true, | |
}, | |
} | |
} | |
}) |