Next.js
This is an example project of a Next.js app that connects to a Drupal instalaltion using GraphQL.
Getting Started
Section titled “Getting Started”Clone Next.js example project
Section titled “Clone Next.js example project”npx create-next-app@latest --example "https://github.com/octahedroid/drupal-decoupled/tree/main/starters/next"Copy .env.example
Section titled “Copy .env.example”cp .env.example .envUpdate values read copied file for instructions
Development
Section titled “Development”Run the dev server:
yarn devSync GraphQL Changes
Section titled “Sync GraphQL Changes”Run the gql:sync script
yarn gql:syncNext.js docs
Section titled “Next.js docs”📖 See the Next.js docs for details on supported features.