Files
huobao-drama/web/vite.config.ts
Connor 9600fc542c init
2026-01-12 13:17:11 +08:00

23 lines
434 B
TypeScript

import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
host: '0.0.0.0',
port: 3012,
proxy: {
'/api': {
target: 'http://localhost:5678',
changeOrigin: true
}
}
}
})