9f9214abe5
This PR updates the docs and examples for `create-next-app` to include pnpm usage. The following script was used to update every example README: ```js const fs = require('fs') const examples = fs.readdirSync('./examples') for (let example of examples) { const filename = `./examples/${example}/README.md` const markdown = fs.readFileSync(filename, 'utf8') const regex = new RegExp(`^yarn create next-app --example (.*)$`, 'gm') const output = markdown.replace(regex, (yarn, group) => { const pnpm = `pnpm create next-app -- --example ${group}` return `${yarn}\n# or\n${pnpm}` }) fs.writeFileSync(filename, output) } ```
2.6 KiB
2.6 KiB
A statically generated blog example using Next.js and Drupal
This example showcases Next.js's Static Generation feature using Drupal as the data source.
Demo
https://cms-drupal.vercel.app
Deploy your own
Once you have configured the Next.js module for Drupal and have access to the environment variables you'll need, deploy the example using Vercel:
Related examples
- WordPress
- DatoCMS
- Sanity
- TakeShape
- Prismic
- Contentful
- Strapi
- Agility CMS
- Cosmic
- ButterCMS
- Storyblok
- Kontent
- Ghost
- GraphCMS
- Blog Starter
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example cms-drupal cms-drupal-app
# or
yarn create next-app --example cms-drupal cms-drupal-app
# or
pnpm create next-app -- --example cms-drupal cms-drupal-app
Setup Drupal
See the Get Started guide here.
Deploy from Our Template
Alternatively, you can deploy using our template by clicking on the Deploy button below.