Blog

Sep 24, 2025

How I Built a Simple MDX Blog in Next.js and why I chose native mdx over Contentlayer

Next.js’s official MDX integration lets you import .mdx as components and export metadata alongside content. I used @next/mdx with the App Router and kept indexing simple by importing metadata directly from each MDX file. No extra build steps, no content database, and the sitemap pulls dates straight from the MDX front‑matter.

Source: HackerNoon →


Share

BTCBTC
$115,672.00
5.12%
ETHETH
$4,160.40
11.74%
BNBBNB
$1,309.75
17.91%
USDTUSDT
$1.00
0.02%
XRPXRP
$2.53
8.43%
SOLSOL
$198.10
13.62%
USDCUSDC
$1.000
0%
STETHSTETH
$4,158.78
11.8%
DOGEDOGE
$0.207
12.85%
TRXTRX
$0.323
3.65%
ADAADA
$0.702
12.24%
WSTETHWSTETH
$5,055.92
11.76%
WBTCWBTC
$115,737.00
5.42%
WBETHWBETH
$4,471.76
11.88%
LINKLINK
$18.92
11.78%
FIGR_HELOCFIGR_HELOC
$1.00
0%
USDEUSDE
$1.00
0.04%
WEETHWEETH
$4,485.08
11.62%
XLMXLM
$0.341
7.27%
BCHBCH
$545.33
9.06%