YD-WEB/vite.config.mjs

11 lines
296 B
JavaScript
Raw Permalink Normal View History

2026-07-20 15:49:49 +08:00
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
server: {
host: '0.0.0.0',
proxy: { '/api/competition': { target: process.env.COMPETITION_API_TARGET || 'http://localhost:8787', changeOrigin: true } }
}
2026-07-20 15:49:49 +08:00
});