mirror of
https://github.com/vercel/components.build.git
synced 2026-09-14 20:06:39 +08:00
55fae375a4
* Update Geistdocs * Update geistdocs.tsx * Run translation script * Delete toc.tsx * Update route.ts * Update route.ts
38 lines
664 B
TypeScript
38 lines
664 B
TypeScript
import { createMDX } from "fumadocs-mdx/next";
|
|
import type { NextConfig } from "next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
const config: NextConfig = {
|
|
reactStrictMode: true,
|
|
|
|
experimental: {
|
|
turbopackFileSystemCacheForDev: true,
|
|
},
|
|
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/:path*.mdx",
|
|
destination: "/llms.mdx/:path*",
|
|
},
|
|
{
|
|
source: "/:path*.md",
|
|
destination: "/llms.mdx/:path*",
|
|
},
|
|
];
|
|
},
|
|
|
|
images: {
|
|
formats: ["image/avif", "image/webp"],
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "github.com",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|