Hive
fix(website): run worker before assets
GitHub issue · Closed
Source
tuist/once #45
Updated
Jun 24, 2026
Domains
Once
Summary
- Default Cloudflare behavior with
assets+mainis asset-first: static files are served before the Worker runs, which silently bypasses the content negotiation,Content-Signalheader, andLinkheader. - Setting
assets.run_worker_first: truemakes the Worker handle every request and delegate toenv.ASSETS.fetch()for static files.
Testing
- Verified against the first live deploy (https://fabrik-website.tuist-cc0.workers.dev):
Accept: text/markdownreturned HTML, and HTML responses had noContent-Signal/Linkheaders. - After this change deploys, the Worker should intercept every request and emit the discovery headers + serve Markdown alternates when negotiated.
No GitHub comments yet.