Files
vercel__workflow/docs/proxy.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

26 lines
787 B
TypeScript

import { createProxy } from '@vercel/geistdocs/proxy';
import { config as geistdocsConfig } from '@/lib/geistdocs/config';
import { trackMdRequest } from '@/lib/md-tracking';
const proxy = createProxy({
config: geistdocsConfig,
trackMarkdownRequest: trackMdRequest,
markdownRoutes: [
{ from: '/docs/*path', to: '/[lang]/llms.mdx/docs/*path' },
{ from: '/cookbook/*path', to: '/[lang]/llms.mdx/cookbook/*path' },
{ from: '/v5/docs/*path', to: '/[lang]/llms.mdx/v5/docs/*path' },
{
from: '/v5/cookbook/*path',
to: '/[lang]/llms.mdx/v5/cookbook/*path',
},
],
});
export const config = {
matcher: [
'/((?!api(?:/|$)|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt|og(?:/|$)|.*\\.svg$|.*\\.zip$).*)',
],
};
export default proxy;