02 - MDX Support
Adding dependancy to allow md/mdx files to act as routable pages in next.js
WHY
Our current terms of service and privacy pages are written in Markdown format and in order to serve them as pages within Next.js without duplicating content, we need MDX support.
WHAT
This change adds the @next/mdx dependency and corresponding Next.js configuration to enable Markdown files to function as pages.
IMPLIMENTATION STEPS
- Deploy to production and verify the build completes successfully
- Run
pnpm installto install the@next/mdxdependency
ROLLBACK STEPS
IF the production build fails:
- Declare a PCP incident for the failed production deployment
- Revert the MDX dependency and configuration with a new PR
No data or infrastructure rollback is required.