From f5a750236df31af6eaa230619e0b6cddb32b034f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 02:57:25 +0000 Subject: [PATCH] Add API_BASE to Welcome.tsx cgen-6593bb705d7a426f93b4456d15b50095 --- client/components/onboarding/Welcome.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/onboarding/Welcome.tsx b/client/components/onboarding/Welcome.tsx index 5cb87352..5970c403 100644 --- a/client/components/onboarding/Welcome.tsx +++ b/client/components/onboarding/Welcome.tsx @@ -1,5 +1,7 @@ import { OnboardingData } from "@/pages/Onboarding"; import { Button } from "@/components/ui/button"; + +const API_BASE = import.meta.env.VITE_API_BASE || ""; import { Card, CardContent, @@ -105,7 +107,7 @@ export default function Welcome({ if (isSessionMissing && emailAddress) { try { - const resp = await fetch("/api/auth/check-verification", { + const resp = await fetch(`${API_BASE}/api/auth/check-verification`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email: emailAddress }),