Design system.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
724 B

  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)