Files
nodejs/exam/frontend/vite.config.ts
T

17 lines
344 B
TypeScript
Raw Normal View History

2026-08-21 11:19:36 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
proxy: {
// 代理 /api 请求到后端服务
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
})