This commit is contained in:
2025-09-24 20:35:15 +08:00
parent 39679f7330
commit 8a458ff0a4
12033 changed files with 1537546 additions and 13292 deletions

18
admin/vite.config.ts Normal file
View File

@@ -0,0 +1,18 @@
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
return {
plugins: [vue()],
server: {
port: Number(env.VITE_PORT || 5173),
host: true
},
preview: {
port: Number(env.VITE_PREVIEW_PORT || 5174)
}
}
})