- 打开根目录的vite.config.js
- 配置proxy:
export default defineConfig({
server: {
proxy: {
'/api': {
target: 'https://localhost:7602',
secure: false,
},
'/hangfire': {
target: 'https://localhost:7602',
secure: false,
},
},
}
})