Skip to content

Configuration ​

Everything is optional, in config/app.php:

php
'static' => [
    'out' => 'deploy',                    // the output folder (or --out)
    'base_url' => 'https://example.com',  // the site's address once published (or --base-url;
                                          // default APP_URL): used in the sitemap, the feed and share tags
    'paths' => ['/style-guide'],          // pages nothing links to
    'host' => 'cloudflare',               // or 'none', or your own class (Hosts); or --host
    'name' => 'my-site',                  // the Worker's name on Cloudflare (default: the site's name)
    'domains' => ['example.com'],         // your domains on Cloudflare (default: the workers.dev address)
],
Option
outthe folder the site is written to, relative to the site (default deploy)
base_urlthe published address; links in the sitemap, the feed and share tags use it
pathspages the build can't find by following links (How it works)
hostwhere the site is published (Hosts)
namethe Worker's name on Cloudflare (written in lowercase with dashes: Lab 909 becomes lab-909)
domainsdomains managed by Cloudflare that point at the site (Publishing)

Forms have their own static settings, in config/forms.php: see Forms.

Secrets never go here: the Cloudflare API token and the mail server's password are in .env (Publishing).

TinyTank documentation