Files
MBTI_wang/h5-vue/vite.config.ts
Ghost a411bf7b21 高考版优化
审核模式优化
2026-04-29 18:01:26 +08:00

22 lines
447 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5174,
proxy: {
'/api': {
target: process.env.VITE_PROXY_TARGET || 'http://127.0.0.1',
changeOrigin: true,
},
},
},
})