Files
cms/vite.config.ts
T
2026-06-05 16:54:48 +08:00

23 lines
432 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
base: '/cms/',
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 5173,
proxy: {
'/server': {
target: 'http://8.160.178.88/',
changeOrigin: true
}
}
}
})