Design system.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

next.config.js 724 B

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