https://github.com/chapter-three/pantheon-next
Next.js for Drupal on Pantheon
https://github.com/chapter-three/pantheon-next
Last synced: about 2 months ago
JSON representation
Next.js for Drupal on Pantheon
- Host: GitHub
- URL: https://github.com/chapter-three/pantheon-next
- Owner: chapter-three
- Created: 2022-08-09T13:33:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T18:17:13.000Z (over 2 years ago)
- Last Synced: 2025-02-06T11:19:42.864Z (3 months ago)
- Language: PHP
- Size: 104 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js for Drupal on Pantheon
[](https://github.com/chapter-three/pantheon-next/actions/workflows/drupal.yml)
This module provides integration for developing decoupled Drupal and Next.js sites on Pantheon.
## Installation
1. Add the `next_for_drupal_pantheon` module to your Drupal site.
```bash
composer require drupal/next_for_drupal_pantheon
```2. 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.
3. Visit `/admin/config/services/next/pantheon`.
4. Click **Run Installer**.## Pantheon Configuration
To connect your Next.js site to Drupal, you need to add the required environment variables on the Pantheon Dashboard.
1. On your Drupal side, visit `/admin/config/services/next/pantheon`.
2. Click **Environment Variables** under **Operations**.
3. Click **Generate New Secret**.
4. Open your site's dashboard on Pantheon and visit Settings → Build.
5. Copy and paste the environment variables from Drupal.
6. Trigger a new build for your Next.js site on Pantheon.