From b3680ec72469187d65c3ef4657ee70f82a6b31eb Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sun, 19 Jul 2026 19:55:03 +0000 Subject: [PATCH] a2a-source-edit: write frontend/vite.config.js --- frontend/vite.config.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 frontend/vite.config.js diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..d94d871 --- /dev/null +++ b/frontend/vite.config.js @@ -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, + }, + }, +});