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 .env
Update values read copied file for instructions
Development
Run the dev server:
yarn dev
Sync GraphQL Changes
Run the gql:sync
script
yarn gql:sync
Next.js docs
📖 See the Next.js docs for details on supported features.