Skip to content

Commit 9174fef

Browse files
committed
Configure deployment secrets
1 parent 818244e commit 9174fef

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
- name: Install dependencies
7575
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} --legacy-peer-deps
7676
- name: Build with Next.js
77+
env:
78+
NEXT_PUBLIC_GEMINI_API_KEY: ${{ secrets.NEXT_PUBLIC_GEMINI_API_KEY }}
7779
run: ${{ steps.detect-package-manager.outputs.runner }} next build
7880
- name: Upload artifact
7981
uses: actions/upload-pages-artifact@v3

components/chat-widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function ChatWidget() {
7777
console.error("Chat Error:", error);
7878
setMessages((prev) => [
7979
...prev,
80-
{ role: "model", text: "SYSTEM_ERROR: Connection interrupted. Please try again." }
80+
{ role: "model", text: `SYSTEM_ERROR: ${error instanceof Error ? error.message : "Connection failed"}` }
8181
]);
8282
} finally {
8383
setIsLoading(false);

0 commit comments

Comments
 (0)