Files
vercel__workflow/docs/app/api/chat/route.ts
Rich Haines aa93cc5e69 Migrate docs to package-backed geistdocs (#2222)
* Migrate docs to package-backed geistdocs

* update agent install cmd on home page

* add copy prompt component usage

* update docs test for sitemap inclusion

* cut unused components

* address docs migration review feedback

* address stale review feedback: geistdocs 1.8.2, version icons, cookbook prompts

* drop Workflow from OSS products dropdown (self-link)

* bump @vercel/geistdocs to 1.11.0

* fix: resolve pnpm-lock.yaml conflict marker from main merge

---------

Co-authored-by: Peter Wielander <peter.wielander@vercel.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-07-13 18:44:11 +02:00

20 lines
586 B
TypeScript

import { createChatRoute } from '@vercel/geistdocs/routes/chat';
import { config } from '@/lib/geistdocs/config';
import { currentSources } from '@/lib/geistdocs/source';
const chatProxyUrl = process.env.GEISTDOCS_CHAT_PROXY_URL;
const chatProxyToken = process.env.GEISTDOCS_CHAT_PROXY_TOKEN;
export const { POST, maxDuration } = createChatRoute({
config,
proxy: chatProxyUrl
? {
url: chatProxyUrl,
headers: chatProxyToken
? { Authorization: `Bearer ${chatProxyToken}` }
: undefined,
}
: undefined,
sources: currentSources,
});