UI • Agent • SEO • Cloudflare Pages
This repo is intentionally simple for Cloudflare Pages: an SEO landing page at /, a React chat UI at /chat, and a serverless agent endpoint via Pages Functions at /api/chat.
Clean chat interface with history, local persistence, and an opinionated “product” layout (not a demo widget).
POST /api/chat proxies requests to OpenAI using a server-side API key stored in Cloudflare environment variables.
Landing page is plain HTML (fast indexing), plus robots.txt, sitemap.xml, canonical, and OG metadata.
It is production-structured: clean routing, static SEO, and a server-side API boundary. You still must set environment variables, add your own policies (rate limits, allowlist), and decide logging/analytics.
By default, the landing page is indexable. The chat UI is typically thin-content and can be set to noindex. If you want the chat page indexed, add a short explanatory block + unique metadata in /chat/index.html.
Update canonical + sitemap URLs after attaching your custom domain in Cloudflare Pages. Files: /index.html and /public/sitemap.xml.