mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
332c84ac02
Slack-Thread: https://vercel.slack.com/archives/C08077A6JDB/p1775419801951169?thread_ts=1775419801.951169&cid=C08077A6JDB Co-authored-by: v0 <v0[bot]@users.noreply.github.com> Co-authored-by: Malte Ubl <89679+cramforce@users.noreply.github.com>
62 lines
1.2 KiB
TypeScript
62 lines
1.2 KiB
TypeScript
import { createMDX } from "fumadocs-mdx/next";
|
|
import type { NextConfig } from "next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
const config: NextConfig = {
|
|
experimental: {
|
|
turbopackFileSystemCacheForDev: 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: "/marketplace",
|
|
destination: "/adapters",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/adapters/gchat",
|
|
destination: "/adapters/google-chat",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/docs/adapters/:slug",
|
|
destination: "/adapters/:slug",
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/docs/state/:slug",
|
|
destination: "/adapters/:slug",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "placehold.co",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|