next.config.js 467 B

1234567891011121314151617181920
  1. import createMDX from "@next/mdx";
  2. /** @type {import('next').NextConfig} */
  3. const nextConfig = {
  4. serverExternalPackages: ["bash-tool", "just-bash", "@mongodb-js/zstd"],
  5. pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
  6. async redirects() {
  7. return [
  8. {
  9. source: "/docs/components",
  10. destination: "/docs/registry",
  11. permanent: true,
  12. },
  13. ];
  14. },
  15. };
  16. const withMDX = createMDX({});
  17. export default withMDX(nextConfig);