create-dispatch-app
v0.0.7
Published
Scaffold a Next.js app with Dispatch CMS
Maintainers
Readme
create-dispatch-app
Scaffold a Next.js app with Dispatch CMS and an example blog already wired up.
Prerequisites
- Node.js 20.9 or later
- npm (or use pnpm/yarn in the generated app after scaffolding)
Usage
npx create-dispatch-app my-appThis creates a new directory my-app with:
- A Next.js 16 app (App Router)
- Dispatch provider and site key config
- Example blog: list page at
/, post pages at/blog/[slug] - TipTap for rendering post content
.env.local.examplewithNEXT_PUBLIC_DISPATCH_SITE_KEY
Dependencies are installed automatically.
Next steps
Go into the app
cd my-appAdd your site key
- Copy
.env.local.exampleto.env.local - Get your site key from Dispatch (Sites → your site)
- Set
NEXT_PUBLIC_DISPATCH_SITE_KEYin.env.local
- Copy
Run the app
npm run devOpen http://localhost:3000. Create and publish a post in the Dispatch dashboard, then refresh the page.
For the full guide and manual setup, see the Quickstart.
