This commit is contained in:
hailin 2025-05-27 16:25:31 +08:00
parent ed7afaafb6
commit df7af82d85
1 changed files with 3 additions and 0 deletions

View File

@ -177,6 +177,9 @@ export default function SetupPage() {
const workspaces = await getWorkspacesByUserId(profile.user_id)
const homeWorkspace = workspaces.find(w => w.is_home)
if (!homeWorkspace) {
throw new Error("Home workspace not found for user during setup. This should not happen.")
}
const baseUrl = typeof window !== "undefined"
? `http://${window.location.hostname}:30000/v1`