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() {