Skip to content

Next.js

This is an example project of a Next.js app that connects to a Drupal instalaltion using GraphQL.

Terminal window
npx create-next-app@latest --example "https://github.com/octahedroid/drupal-decoupled/tree/main/starters/next"
Terminal window
cp .env.example .env

Update values read copied file for instructions

Run the dev server:

Terminal window
yarn dev

Run the gql:sync script

Terminal window
yarn gql:sync

📖 See the Next.js docs for details on supported features.