From 606db0bf2d8fb2c74b9c6b12b669e63b226f2ba9 Mon Sep 17 00:00:00 2001 From: vbarda Date: Thu, 15 Aug 2024 14:41:24 -0400 Subject: [PATCH] fix --- .github/workflows/deploy-cloud-run.yaml | 1 + frontend/app/page.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-cloud-run.yaml b/.github/workflows/deploy-cloud-run.yaml index 206bf0489..911c92714 100644 --- a/.github/workflows/deploy-cloud-run.yaml +++ b/.github/workflows/deploy-cloud-run.yaml @@ -15,6 +15,7 @@ jobs: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} API_BASE_URL: ${{ secrets.API_BASE_URL }} LANGCHAIN_API_KEY: ${{ secrets.LANGCHAIN_API_KEY }} + NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }} steps: - uses: actions/checkout@v2 - name: Install Vercel CLI diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index ac0203e6e..7a1bd60af 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -8,8 +8,8 @@ import { Client } from "@langchain/langgraph-sdk"; import { ChatWindow } from "./components/ChatWindow"; import { LangGraphClientContext } from "./hooks/useLangGraphClient"; -const apiUrl = process.env.NEXT_PUBLIC_VERCEL_URL - ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/api/` +const apiUrl = process.env.NEXT_PUBLIC_API_URL + ? process.env.NEXT_PUBLIC_API_URL : "http://localhost:3000/api/"; export default function Home() {