Install Drupal
Install Drupal and Next.js module
Start by creating a new site and adding the Next.js module.
Install Drupal
If you have an existing Drupal site, you can skip to the next part.
Start by creating a new Drupal site using composer.
composer create-project drupal/recommended-project drupal-site
Once this is done, you can open the site and proceed with installation, using the "Standard" profile.
Add Next.js module
Run the following command to install the Next.js module and dependencies:
composer require drupal/next
Add GraphQL modules
Run the following command to install GraphQL and GraphQL Compose modules:
composer require 'drupal/graphql:^4.4' 'drupal/graphql_compose:^1.0@beta'