Design system.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

next.config.js 702 B

1234567891011121314151617181920212223
  1. const withMDX = require('@next/mdx')({
  2. extension: /\.mdx?$/,
  3. options: {
  4. // If you use remark-gfm, you'll need to use next.config.mjs
  5. // as the package is ESM only
  6. // https://github.com/remarkjs/remark-gfm#install
  7. remarkPlugins: [],
  8. rehypePlugins: [],
  9. // If you use `MDXProvider`, uncomment the following line.
  10. // providerImportSource: "@mdx-js/react",
  11. },
  12. })
  13. /** @type {import('next').NextConfig} */
  14. const nextConfig = {
  15. // Configure pageExtensions to include md and mdx
  16. pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
  17. // Optionally, add any other Next.js config below
  18. reactStrictMode: true,
  19. }
  20. // Merge MDX config with Next.js config
  21. module.exports = withMDX(nextConfig)