Drupal-as-a-Static-Service
A content management system (CMS) for editors that generates a static site optimized for speed and security? Why not! Many static-site generators still require technical knowledge and/or developer intervention. So, the idea of offering our clients a Drupal CMS to manage their site was definitely enticing. It was especially attractive given we could (comparatively) forget about security for the resulting site.
Inspired by emerging WordPress-as-a-Static-Services, the team agreed to explore and to build a Drupal-as-a-Static-Service proof of content (POC) for some of our existing Drupal sites. And, in March 2022, we launched two: the Indicator Registry and Protection of Civilians - Aide Memoire.
How is the editing process different?
Editors access a private Drupal instance of their site (not available on the public internet) where they can make changes to the website using the Drupal CMS interface. The editor then “publishes” their changes with a magical button. This triggers a series of automated processes which generate a static version of the website.
Take a look at the 30 second video that outlines the concept.
Why go static?
Static websites lack the “moving parts” of dynamic websites. Visitors interact with a fixed version (like a photocopy) of the website. This setup provides additional security while providing a lightning fast site. Editors manage the site’s content in a private, editor-only Drupal CMS.
Technical notes:
- We are leveraging Tome - https://tome.fyi/ to build the static site
- We are using Lunr - https://lunrjs.com/ - for search
- We are using Jenkins to automate several processes in the background
There has not yet been any decision made regarding the project’s future. Regardless of where it goes, it has been fun to find a solution that maintains the user’s experience while greatly improving performance and cybersecurity.
Andrej