a2a-source-edit: write frontend/vite.config.js

This commit is contained in:
a2a-cloud
2026-07-13 00:19:00 +00:00
parent 4ea2b110b9
commit cb93a4aa86

17
frontend/vite.config.js Normal file
View File

@@ -0,0 +1,17 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
const agent = process.env.A2A_DEV_AGENT_URL || "http://127.0.0.1:8000";
export default defineConfig({
base: "./",
plugins: [react()],
server: {
proxy: {
"/config.json": agent,
"/a2a-client.js": agent,
"/_a2a": agent,
"/.well-known": agent,
},
},
});