Demos
The monorepo ships two runnable demo apps under demos/.
git clone https://github.com/next-md-blog/next-md-blog.git
cd next-md-blog
pnpm installFrom the repository root (after a workspace pnpm install), you can run pnpm dev:demo (single locale, port 5102) or pnpm dev:demo:i18n (port 5103) instead of cd into each folder. A root pnpm build also production-builds both demos (same as CI).
Single locale
demos/single — one locale, App Router, typography, and theme toggle patterns. Hosted at demo.next-md-blog.com .
cd demos/single
pnpm install # or npm install
pnpm dev # or npm run devNote: In this monorepo, demos depend on
@next-md-blog/coreviaworkspace:*. Published apps should use@next-md-blog/coreand@next-md-blog/clifrom npm as documented elsewhere on this site.
i18n
demos/i18n — locale segment, translated post folders, and a language switcher. Hosted at demo.i18n.next-md-blog.com .
Source for both: github.com/next-md-blog/next-md-blog .
cd demos/i18n
pnpm install
pnpm devUse these as references for locale in getBlogPost / getAllBlogPosts and for routing structure alongside Internationalization.
Vercel templates (standalone)
To deploy without cloning this monorepo, use the flat apps in templates/ (published as separate GitHub repositories with @next-md-blog/core from npm):
- Single locale: github.com/next-md-blog/template
- i18n: github.com/next-md-blog/template-i18n
Single locale
i18n
After the first deploy, set NEXT_PUBLIC_SITE_URL to your production URL. Source trees are synced from demos/single and demos/i18n via pnpm sync:templates in this repository (see templates/README.md).