Add EasyCode front web app

This commit is contained in:
王鹏
2026-05-22 16:26:33 +08:00
parent ca3242915b
commit d39eeca8a9
24 changed files with 2821 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd())
return {
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 5174,
proxy: {
'/front': {
target: env.VITE_API_BASE_URL || 'http://localhost:8080',
changeOrigin: true
}
}
}
}
})