2023-01-17frontend

MDX blog

  • Change: MDX blog integrated via @mdx-js/loader + @next/mdx + gray-matter (3d0074aa "adding mdx blog", 2126fd19 "blog index done"). Articles live in /markdown/; getStaticProps generates routes at build time.
  • Why: Needed to publish roadmap updates and feature announcements without a CMS. MDX let articles embed live chart components inside prose — a plain Markdown blog couldn't do that.
  • Affected Modules: pages/blog/[slug].tsx, /markdown/, next.config.js (MDX loader config), package.json
  • Trade-offs:
    • Pro: No external CMS dependency; articles are just files in the repo; can embed React components inline.
    • Con: Build time grows with each article; MDX component scope is global, so naming collisions between article-embedded components and site-wide components are possible and non-obvious.