Next.js page that suspends loading, fetches session and prefetches builder conversations and Google status, then renders the AgentBuilderHome component.
// Source: https://github.com/mperkins0155/crm | License: MIT | Copyright 2026 Comp AI
// Provided via justclaw.it.com; keep this notice with the code.
import type { Metadata } from "next";
import { Suspense } from "react";
import { AgentBuilderHome } from "@/components/agent-builder/agent-builder-home";
import { AgentBuilderHomeFallback } from "@/components/agent-builder/agent-builder-route-fallback";
import { requireSession } from "@/lib/session";
import { HydrateClient } from "@/lib/trpc/hydrate";
import { getServerQueryClient, getServerTrpc } from "@/lib/trpc/server";
export const metadata: Metadata = { title: "Chat" };
export default function ChatPage() {
return (
<Suspense fallback={<AgentBuilderHomeFallback />}>
<ChatHome />
</Suspense>
);
}
async function ChatHome() {
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key