mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
aa93cc5e69
* 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>
20 lines
586 B
TypeScript
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,
|
|
});
|