From 6ec3942e87916573428182ca6eb97a36a042b765 Mon Sep 17 00:00:00 2001 From: LPF Date: Thu, 26 Feb 2026 09:01:18 +0800 Subject: [PATCH] fix --- webui/.env.example | 8 -------- webui/README.md | 13 +------------ webui/index.html | 2 +- webui/package.json | 2 +- webui/vite.config.ts | 5 ----- 5 files changed, 3 insertions(+), 27 deletions(-) diff --git a/webui/.env.example b/webui/.env.example index 7a550fe..3ea79b4 100644 --- a/webui/.env.example +++ b/webui/.env.example @@ -1,9 +1 @@ -# GEMINI_API_KEY: Required for Gemini AI API calls. -# AI Studio automatically injects this at runtime from user secrets. -# Users configure this via the Secrets panel in the AI Studio UI. -GEMINI_API_KEY="MY_GEMINI_API_KEY" - -# APP_URL: The URL where this applet is hosted. -# AI Studio automatically injects this at runtime with the Cloud Run service URL. -# Used for self-referential links, OAuth callbacks, and API endpoints. APP_URL="MY_APP_URL" diff --git a/webui/README.md b/webui/README.md index 7d78c01..266e453 100644 --- a/webui/README.md +++ b/webui/README.md @@ -1,13 +1,3 @@ -
-GHBanner -
- -# Run and deploy your AI Studio app - -This contains everything you need to run your app locally. - -View your app in AI Studio: https://ai.studio/apps/f87daef4-01f5-4bfc-be46-985e52d7c763 - ## Run Locally **Prerequisites:** Node.js @@ -15,6 +5,5 @@ View your app in AI Studio: https://ai.studio/apps/f87daef4-01f5-4bfc-be46-985e5 1. Install dependencies: `npm install` -2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key -3. Run the app: +2. Run the app: `npm run dev` diff --git a/webui/index.html b/webui/index.html index 21dfe69..0a9c7c0 100644 --- a/webui/index.html +++ b/webui/index.html @@ -3,7 +3,7 @@ - My Google AI Studio App + ClawGo
diff --git a/webui/package.json b/webui/package.json index d9abfd5..6eacf7d 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,5 +1,5 @@ { - "name": "react-example", + "name": "clawgo", "private": true, "version": "0.0.0", "type": "module", diff --git a/webui/vite.config.ts b/webui/vite.config.ts index c3ab702..4dc4e33 100644 --- a/webui/vite.config.ts +++ b/webui/vite.config.ts @@ -8,17 +8,12 @@ export default defineConfig(({mode}) => { return { base: '/webui/', plugins: [react(), tailwindcss()], - define: { - 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY), - }, resolve: { alias: { '@': path.resolve(__dirname, '.'), }, }, server: { - // HMR is disabled in AI Studio via DISABLE_HMR env var. - // Do not modify file watching is disabled to prevent flickering during agent edits. hmr: process.env.DISABLE_HMR !== 'true', }, };