Static Suite
This module suite transforms your Drupal site into a static site by exporting data and integrating with static site generators like Gatsby or Next.js. It enables building and deploying static sites to various hosting services, with features like instant previews and incremental builds, all managed within Drupal.
A suite of modules to decouple Drupal and turn it into a static site, built by a Static Site Generator like Gatsby or Next.js. It exports data to static files (JSON, XML, etc), runs a build process on them (Gatsby, Next.js Eleventy, Hugo, etc), and deploys the result to any hosting service (AWS S3, Netlify, etc). It also provides an instant preview system for Gatsby.
It includes several modules:
- Static Export: exports Drupal data to static files (JSON, XML, etc) using GraphQL, JSON:API, or any other resolver.
- Static Build: it uses a Static Site Generator (Gatsby, Eleventy, Hugo, etc) to build a static site
- Static Deploy: deploys the above site to any kind of hosting service (AWS S3, Netlify, etc)
- Static Preview: enables previewing content without building the whole site. There is also an instant preview system for Gatsby.
This suite is completely extensible, configurable and adaptable to multiple scenarios, but it's been extensively tested with JSON files, Gatsby and AWS S3. It allows getting the same features as Gatsby Cloud (previews, fast builds and incremental builds) but fully integrated into your Drupal installation. All those features are achieved without using any external service: this suite of modules is not a wrapper over Gatsby Cloud, but a complete implementation of their features in a "Drupal way".
Documentation about each module can be found inside each one's folder.
DISCLAIMER
This is not a suite of modules for beginners. To take real advantage of it, you should have a solid foundation on Drupal, to be able to adapt it to your needs.
On the other hand, this is a WORK IN PROGRESS and is subject to change. Some coming features could break things and you should expect some current features to be completely refactored (most of them won't break things).
While we will do our best to ensure backward compatibility, you should expect some kind of instability while this project is in alpha state.
Static Suite is the result of several years of working with decoupled Drupal and Gatsby, and all you can find here is the response to real needs on our projects. Most of them are sites with thousands of pages, so expect some features to be focused on performance and scalability and not so much on ease of use.
INSTALLATION
Run `composer require drupal/static_suite`. Enable static_suite, static_export, static_export_data_resolver_graphql, static_export_output_formatter_json and static_export_stream_wrapper_local to get a basic working functionality.
CONFIGURATION
Configuration available at /admin/config/static.
Depends on
Dependencies of the latest stable release
- locale Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.2.15 | Stable | 10–11 | Aug 24, 2026 | ||
| 1.2.14 | Stable | 10–11 | Aug 24, 2026 | ||
| 1.2.13 | Stable | 9–11 | Aug 14, 2026 | ||
| 1.2.12 | Stable | 9–11 | Aug 14, 2026 | ||
| 1.2.11 | Stable | 9–11 | Aug 10, 2026 | ||
| 1.2.10 | Stable | 9–11 | Aug 10, 2026 | ||
| 1.2.9 | Stable | 9–11 | Jul 23, 2026 | ||
| 1.2.8 | Stable | 9–11 | Jul 17, 2026 | ||
| 1.2.7 | Stable | 9–11 | Jul 15, 2026 | ||
| 1.2.6 | Stable | 9–11 | Jul 13, 2026 | ||
| 1.2.5 | Stable | 9–11 | Jun 25, 2026 | ||
| 1.2.4 | Stable | 9–11 | Jun 24, 2026 | ||
| 1.2.3 | Stable | 9–11 | Jun 22, 2026 | ||
| 1.2.2 | Stable | 9–11 | May 27, 2026 | ||
| 1.2.1 | Stable | 9–11 | May 15, 2026 | ||
| 1.2.0 | Stable | 9–11 | Adds index files to speed up the copy of data between locations | May 15, 2026 | |
| 1.1.1 | Stable | 9–11 | Apr 27, 2026 | ||
| 1.1.0 | Stable | 9–11 | Apr 27, 2026 | ||
| 1.1.0-rc5 | Pre-release | 9–11 | Adds entity_reference_revisions fields to EntityRefenceFinder | Oct 4, 2025 | |
| 1.1.0-rc4 | Pre-release | 9–11 | Fixed raw config exporter | Oct 2, 2025 | |
| 1.1.0-rc3 | Pre-release | 9–11 | Fixes several setting forms | Sep 29, 2025 | |
| 1.1.0-rc2 | Pre-release | 9–11 | Compatibility with PHP 8.4 | Feb 19, 2025 | |
| 1.1.0-rc1 | Pre-release | 9–11 | Jan 14, 2025 | ||
| 1.1.0-beta5 | Pre-release | 9–11 | Fixes release download timeout | Nov 11, 2024 | |
| 1.1.0-beta4 | Pre-release | 9–11 | Issue #3434769: Automated Drupal 11 compatibility fixes | Nov 8, 2024 | |
| 1.1.0-beta3 | Pre-release | 9–11 | Oct 30, 2024 | ||
| 1.1.0-beta2 | Pre-release | 9–11 | Oct 29, 2024 |