ab0b842fca563ccce30336fd77eb50d1d37c1412
This commit centralizes Gemini API interaction into a new `server.ts` file and removes it from the client-side `geminiService.ts`. It also updates the build process in `package.json` to use `esbuild` for bundling the server code, enabling a more robust build pipeline. The `index.html` has been cleaned up by removing unnecessary OneSignal SDK initialization. Additionally, dev dependencies have been updated, including `esbuild` to version `0.28.0`. A new `test2.ts` file is added for testing Gemini API connectivity.
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/c922d781-23ec-403c-becd-e12f2237b1b0
Run Locally
Prerequisites: Node.js
- Install dependencies:
npm install - Set the
GEMINI_API_KEYin .env.local to your Gemini API key - Run the app:
npm run dev
Description
Languages
TypeScript
98.6%
CSS
1%
JavaScript
0.3%