Commit Graph
11 Commits
Author SHA1 Message Date
Matt Kane 3c319ed641 fix: redirect to setup wizard on fresh deployments when public page is first request
On a fresh CF deployment, if the first request hits a public page, the
middleware fast-path skips runtime init. Template helpers like
getSiteSettings() then query an empty database and crash with
'no such table: options'.

Add a one-time setup probe in the middleware fast-path: check if the
migrations table exists, and redirect to the setup wizard if not.
The check is cached for the worker lifetime after first success.

Also includes release workflow update to use GitHub App token and
admin branding changeset.
2026-04-01 14:14:05 +01:00
github-actions[bot] be76e0781e ci: release 2026-04-01 12:07:38 +00:00
Matt Kane cb7a816675 Fix migration 2026-04-01 12:39:19 +01:00
Matt Kane b09bfd51ce fix: exclude virtual:emdash from optimizeDeps to fix npm installs on Cloudflare 2026-04-01 12:27:00 +01:00
Matt Kane ca3c2b77e1 Format 2026-04-01 11:51:57 +01:00
Matt Kane 7262b93a44 branding 2026-04-01 11:44:21 +01:00
Matt Kane c2120a4961 Fix repo names 2026-04-01 11:18:28 +01:00
Matt Kane 5e061c3569 Align version numbers 2026-04-01 11:11:34 +01:00
Matt Kane 2e863566b3 Fix scope 2026-04-01 10:58:32 +01:00
Matt Kane 482a442f60 Add readme 2026-04-01 10:46:10 +01:00
Matt Kane 43fcb9a131 first commit 2026-04-01 10:44:22 +01:00