Background # Say you have an old website on Drupal 7 with plugins that don’t work with the latest versions of Drupal. You now cannot migrate over to Drupal 9 or 10 without doing a lot of manual work and/or losing the functionality of your current plugins. If your requirements are still fulfilled by the old Drupal 7 website, there’s a solution to keep using it.
To extract a static website from Drupal 7.x so it can be hosted on Cloudflare Pages, follow the instructions below:
Install plugin “Static Generator” from (www.drupal.org/project/static) Run it. All static files will be created under “static” folder in the root of your Drupal Installation after you complete initial setup. Create a new Github repo, upload all files to Github and deploy into Cloudflare. Your website will be live in the URL you set up during deployment. If you do not know git, use “Git Desktop”, load all the files, and sync it up. As soon as the sync is complete, if you’ve set up Cloudflare pages to autodeploy (default mode), your site will be deployed in Cloudflare near instantly.