Initialize AutoLibrary website with Gitea deployment

This commit is contained in:
KenanZhu committed 2026-11-04 09:59:06 +08:00
commit 18216953e7
101 files changed
+12581

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '')
return {
plugins: [vue()],
publicDir: 'public',
server: {
port: 5173,
proxy: {
'/api': {
target: env.API_PROXY_TARGET || 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/api/, ''),
},
},
},
build: { outDir: 'dist', emptyOutDir: true },
}
})