Files
vercel-labs__portless/apps/docs/next.config.mjs
Railly Hugo 2e87792c0d feat(docs): add agent-readable documentation (#387)
* feat(docs): add agent-readable documentation

* fix(docs): retry failed source reads

* fix(docs): preserve social link previews
2026-08-19 16:02:54 -03:00

23 lines
546 B
JavaScript

import createMDX from "@next/mdx";
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ["ts", "tsx", "md", "mdx"],
serverExternalPackages: ["just-bash", "bash-tool"],
outputFileTracingIncludes: {
"/*": ["./src/app/**/*.mdx"],
},
async rewrites() {
return {
beforeFiles: [
{ source: "/index.md", destination: "/api/docs-md" },
{ source: "/:path*.md", destination: "/api/docs-md/:path*" },
],
};
},
};
export default withMDX(nextConfig);