Design system.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

next.config.js 820 B

1234567891011121314151617181920212223242526272829
  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. webpack: (config, { isServer }) => {
  20. if (!isServer) {
  21. config.resolve.fallback.fs = false;
  22. }
  23. return config;
  24. },
  25. }
  26. // Merge MDX config with Next.js config
  27. module.exports = withMDX(nextConfig)