Files
MailUI4Agents/client/electron/vite.config.ts

17 lines
362 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
// Gateway 默认监听 8180与 config.Load() 的 PORT 默认值一致)
'/api': {
target: 'http://localhost:8180',
changeOrigin: true
}
}
}
});