This module provides integration for developing decoupled Drupal and Next.js sites on Pantheon.
- Add the
next_for_drupal_pantheon
module to your Drupal site.
composer require drupal/next_for_drupal_pantheon
- Visit
/admin/modules
and enable the Next.js for Pantheon module.
Once you've enabled the module, you can visit /admin/config/services/next/pantheon
to run the installer.
The installer will configure a new Next.js site and the required variables for running the site on Pantheon.
- Visit
/admin/config/services/next/pantheon
. - Click Run Installer.
To connect your Next.js site to Drupal, you need to add the required environment variables on the Pantheon Dashboard.
- On your Drupal side, visit
/admin/config/services/next/pantheon
. - Click Environment Variables under Operations.
- Click Generate New Secret.
- Open your site's dashboard on Pantheon and visit Settings → Build.
- Copy and paste the environment variables from Drupal.
- Trigger a new build for your Next.js site on Pantheon.