Using MDX content within NextJs App and Page routes via next-mdx and next-mdx-remote.
Libraries required to use MDX content with NextJs natively.
@next/mdx
- NextJs MDX package for server-side rendering.@next/mdx-remote
- NextJs MDX package for static site generation.next
- NextJs framework.react
- React library.react-dom
- React DOM library.Additional libraries I used for this project that are not required for the core functionality.
tailwindcss
- Utility-first CSS framework.typescript
- Typed JavaScript.[x] Research MDX content in NextJs.
[x] Create NextJs project with MVP requirements and latest NextJs - 14.2.4.
[ ] Build Content
main
- to be used with next-mdx
blog
- to be used with next-mdx-remote
[ ] Build App directory
[ ] Use Page directory