29 lines
604 B
JavaScript
29 lines
604 B
JavaScript
import { createMDX } from "fumadocs-mdx/next";
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
serverExternalPackages: ["@takumi-rs/core", "typescript", "twoslash"],
|
|
output: "export",
|
|
reactStrictMode: true,
|
|
allowedDevOrigins: ["duckity.com", "duckity.dev"],
|
|
basePath: "/docs",
|
|
trailingSlash: true,
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
async rewrites() {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: "/:path*.md",
|
|
destination: "/llms.mdx/docs/:path*",
|
|
},
|
|
],
|
|
};
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|