jiangchengfeiyi-Web/vite.config.ts

27 lines
539 B
TypeScript
Raw Normal View History

2024-10-23 09:55:22 +00:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
2025-03-06 00:50:58 +00:00
base: './',
2024-10-23 09:55:22 +00:00
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
// server: {
// proxy: {
// '/api': {
// target: 'http://1.94.237.210:9092',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, ''),
// },
// }
// },
2024-10-23 09:55:22 +00:00
})