Buckets:
32.9 GB
31,201 files
Updated 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| components | 20 items | ||
| lib | 2 items | ||
| pages | 5 items | ||
| public | 10 items | ||
| styles | 1 items | ||
| .env.local.example | 81 Bytes xet | 5471f586 | |
| .gitignore | 437 Bytes xet | f8bee8be | |
| README.md | 3.2 kB xet | def87578 | |
| next.config.js | 323 Bytes xet | 0f7d6518 | |
| package.json | 548 Bytes xet | 502bf4d4 | |
| postcss.config.js | 204 Bytes xet | 0a8100cd | |
| tailwind.config.js | 968 Bytes xet | 32a2642a | |
| tsconfig.json | 653 Bytes xet | 2f7392a2 |
A statically generated blog example using Next.js and dotCMS
This example showcases Next.js's Static Generation feature using dotCMS as the data source.
Demo
https://nextjs-dotcms-blog.vercel.app/
Deploy your own
Using the Deploy Button below, you'll deploy the Next.js project.
Related examples
- AgilityCMS
- Builder.io
- ButterCMS
- Contentful
- Cosmic
- DatoCMS
- DotCMS
- Drupal
- Enterspeed
- Ghost
- GraphCMS
- Kontent.ai
- MakeSwift
- Payload
- Plasmic
- Prepr
- Prismic
- Sanity
- Sitecore XM Cloud
- Sitefinity
- Storyblok
- TakeShape
- Tina
- Umbraco
- Umbraco heartcore
- Webiny
- WordPress
- Blog Starter
How to use
Rename .env.local.example to .env.local and complete the variables:
NEXT_PUBLIC_DOTCMS_HOST is the dotCMS host, you can use https://demo.dotcms.com
DOTCMS_TOKEN for the demo site, you can generate the token using:
curl -H "Content-Type:application/json" --insecure -X POST -d '
{ "user":"admin@dotcms.com", "password":"admin", "expirationDays": 10 }
' http://demo.dotcms.com:8080/api/v1/authentication/api-token
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example cms-dotcms cms-dotcms-app
yarn create next-app --example cms-dotcms cms-dotcms-app
pnpm create next-app --example cms-dotcms cms-dotcms-app
- Total size
- 32.9 GB
- Files
- 31,201
- Last updated
- Sep 26
- Pre-warmed CDN
- US EU US EU