72QishierPlayer/vite.config.ts
云上贵猪 2d5aa1d860 新增
1、浏览器自动获取,存本地
2、运行后端服务
3、vue启动获取
2026-03-11 03:01:56 +08:00

21 lines
397 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: {
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true
}
}
}
})