Files
Thierry Damiba 8143df4da8 docs(cookbook): add Arcade authenticated-tools recipe and showcase
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>
2026-06-16 23:37:48 -07:00

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} />;
}