Files

24 lines
601 B
TypeScript
Raw Permalink Normal View History

2024-11-08 23:33:17 +08:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2025-06-24 09:09:52 +08:00
import ViteYaml from '@modyfi/vite-plugin-yaml'
// 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,
2025-06-24 09:09:52 +08:00
plugins: [vue(), ViteYaml(),/* viteSingleFile() */],
server: {
proxy: {
"/api": {
target: API_BASE_URL,
},
"/api_meta.js": {
target: API_BASE_URL,
},
}
}
2024-11-08 23:33:17 +08:00
})