mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
8143df4da8
Adds a cookbook recipe + runnable showcase that gives the Built-in Agent OAuth-backed Arcade tools (Gmail, Google News) and renders Arcade's one-time authorization step as a generative-UI "Connect" card in the chat. - docs: showcase/shell-docs/src/content/docs/cookbook/arcade.mdx (+ meta.json, index card) - app: examples/showcases/arcade-tools (Next.js App Router, single-route runtime) Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
496 B
TypeScript
14 lines
496 B
TypeScript
import { HomeClient } from "./home-client";
|
|
|
|
// Read runtime env per request so the "add your keys" hint reflects reality
|
|
// (env isn't available at build time, and these are server-only, so only the
|
|
// boolean crosses to the client, never the keys themselves).
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default function Home() {
|
|
const keysConfigured = Boolean(
|
|
process.env.ARCADE_API_KEY && process.env.OPENAI_API_KEY,
|
|
);
|
|
return <HomeClient keysConfigured={keysConfigured} />;
|
|
}
|