Turning a Drupal 8 site into an HTML Static Site - Nigel Milligan - DrupalCamp Poland 2019

Jun 22, 2019

Speaker: Nigel Milligan

DrupalCamp Poland 1-2.06.2019

The idea of creating a static HTML version of a website for production use is gaining significant traction in the industry. Doing this removes the joint attack vectors of PHP and MySQL on the site, and means there is no requirement to slavishly keep up to date with Drupal security patches. Content can still be created using Drupal in a secure non-public facing environment such as a VPC or a sandbox, then the static pages can be deployed to the production server.

The Drupal module Tome has made all this possible. Nigel shows how to use this module, and how to counteract some of the difficulties faced by choosing this architecture. Since the production website will have no Drupal backend, an alternative search mechanism will be required, and Nigel shows how to leverage Elasticsearch server and JavaScript client as a replacement to Drupal core search.

Similarly, without a Drupal backend, a Contact form requires a different approach. Nigel shows how AWS serverless products such as Lambda, Gateway API and SES can be used as a replacement for a 'Contact Me' form.

Note: This is effectively a presentation on a sequence of blogs I am writing entitled Drupal 8 as a Static Site. It is still work in progress but will be completed over the Xmas break.

Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.