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