chore: bump fumadocs (#4144)

This commit is contained in:
Alex Yang
2025-08-21 20:30:06 -07:00
parent cb0baf61d8
commit e25d7320f9
10 changed files with 1036 additions and 213 deletions

60
docs/next.config.js Normal file
View File

@@ -0,0 +1,60 @@
import { createMDX } from "fumadocs-mdx/next";
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
async rewrites() {
return [
{
source: "/docs/:path*.mdx",
destination: "/llms.txt/:path*",
},
];
},
redirects: async () => {
return [
{
source: "/docs",
destination: "/docs/introduction",
permanent: true,
},
{
source: "/docs/examples",
destination: "/docs/examples/next-js",
permanent: true,
},
];
},
serverExternalPackages: [
"ts-morph",
"typescript",
"oxc-transform",
"@shikijs/twoslash",
],
images: {
remotePatterns: [
{
hostname: "images.unsplash.com",
},
{
hostname: "assets.aceternity.com",
},
{
hostname: "pbs.twimg.com",
},
{
hostname: "github.com",
},
{
hostname: "hebbkx1anhila5yf.public.blob.vercel-storage.com",
},
],
},
reactStrictMode: true,
typescript: {
ignoreBuildErrors: true,
},
};
export default withMDX(config);