Skip to Content
Demos

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 install

From 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 dev

Note: In this monorepo, demos depend on @next-md-blog/core via workspace:*. Published apps should use @next-md-blog/core and @next-md-blog/cli from 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 dev

Use 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

Deploy with Vercel

i18n

Deploy with Vercel

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).

Last updated on