Files
Easytier_lkddi/easytier-web/frontend/vite.config.ts
T

23 lines
541 B
TypeScript
Raw Normal View History

2024-11-08 23:33:17 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// import { viteSingleFile } from "vite-plugin-singlefile"
2024-11-08 23:33:17 +08:00
2025-04-19 22:56:20 +08:00
const WEB_BASE_URL = process.env.WEB_BASE_URL || '';
const API_BASE_URL = process.env.API_BASE_URL || 'http://localhost:11211';
2025-04-19 22:56:20 +08:00
2024-11-08 23:33:17 +08:00
// https://vite.dev/config/
export default defineConfig({
2025-04-19 22:56:20 +08:00
base: WEB_BASE_URL,
plugins: [vue(),/* viteSingleFile() */],
server: {
proxy: {
"/api": {
target: API_BASE_URL,
},
"/api_meta.js": {
target: API_BASE_URL,
},
}
}
2024-11-08 23:33:17 +08:00
})