Files
Ben Sabic 894fc7c7b3 docs: redirect conversation-history and update Vercel Connect page (#870)
Redirects /docs/conversation-history to /docs/history, since the History
guide already covers the old transcripts content. Removes the Vercel
Connect beta callout and adds related links to the Chat SDK docs and The
Complete Guide to Vercel Connect.

---------

Signed-off-by: Ben Sabic <bensabic@users.noreply.github.com>
Co-authored-by: Ben Sabic <bensabic@users.noreply.github.com>
2026-08-28 10:31:31 -07:00

127 lines
3.1 KiB
TypeScript

import { createGeistdocs } from "@vercel/geistdocs/next";
import type { NextConfig } from "next";
const withGeistdocs = createGeistdocs();
const config: NextConfig = {
cacheComponents: true,
partialPrefetching: true,
async rewrites() {
return [
{
source: "/sitemap.xml",
destination: "https://crawled-sitemap.vercel.sh/chat-sdk.dev-.xml",
},
];
},
async redirects() {
return [
{
source: "/docs/contributing",
destination: "/docs/contributing/building",
permanent: true,
},
{
source: "/docs/slack-primitives",
destination: "/adapters/official/slack#low-level-apis",
permanent: true,
},
{
source: "/docs/teams-primitives",
destination: "/adapters/official/teams#low-level-apis",
permanent: true,
},
{
source: "/marketplace",
destination: "/adapters",
permanent: true,
},
{
source: "/adapters/gchat",
destination: "/adapters/official/gchat",
permanent: true,
},
{
source: "/adapters/official/google-chat/:path*",
destination: "/adapters/official/gchat/:path*",
permanent: true,
},
{
source: "/:lang/adapters/official/google-chat/:path*",
destination: "/:lang/adapters/official/gchat/:path*",
permanent: true,
},
{
source: "/adapters/community/matrix",
destination: "/adapters/vendor-official/matrix",
permanent: true,
},
{
source: "/adapters/community/resend",
destination: "/adapters/vendor-official/resend",
permanent: true,
},
{
source: "/adapters/community/zernio",
destination: "/adapters/vendor-official/zernio",
permanent: true,
},
{
source: "/adapters/community/liveblocks",
destination: "/adapters/vendor-official/liveblocks",
permanent: true,
},
{
source: "/adapters/community/sendblue",
destination: "/adapters/vendor-official/sendblue",
permanent: true,
},
{
source: "/docs/adapters/:slug+",
destination: "/adapters",
permanent: true,
},
{
source: "/docs/conversation-history",
destination: "/docs/history",
permanent: true,
},
{
source: "/docs/state",
destination: "/docs/state-adapters",
permanent: true,
},
{
source: "/docs/state/:slug+",
destination: "/adapters",
permanent: true,
},
{
source: "/adapters/for/:slug*",
destination: "/adapters",
permanent: true,
},
{
source:
"/adapters/:slug((?!official$|community$|vendor-official$|official/.*|community/.*|vendor-official/.*).+)",
destination: "/adapters",
permanent: true,
},
];
},
images: {
formats: ["image/avif", "image/webp"],
remotePatterns: [
{
protocol: "https",
hostname: "placehold.co",
},
],
},
};
export default withGeistdocs(config);