mirror of
https://github.com/vercel-labs/portless.git
synced 2026-09-14 16:37:59 +08:00
2e87792c0d
* feat(docs): add agent-readable documentation * fix(docs): retry failed source reads * fix(docs): preserve social link previews
23 lines
546 B
JavaScript
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);
|