Cloudflare Pages
to run in your site's root directory
View template source
create_file "wrangler.toml", <<~TOML
name = "my-perron-site"
pages_build_output_dir = "./output"
[vars]
RAILS_ENV = "production"
RUBY_VERSION = "3.4.5"
PERRON_HOST = "yourdomain.com"
PERRON_PROTOCOL = "https"
TOML
This snippet adds a configuration file for Cloudflare Pages deployments. The wrangler.toml file defines your project name, build output directory and configures environment variables for your Perron-powered static site.