Hive Hive
Sign in

fix(website): run worker before assets

GitHub issue · Closed

Metadata
Source
tuist/once #45
Updated
Jun 24, 2026
Domains
Once
Details

Summary

  • Default Cloudflare behavior with assets + main is asset-first: static files are served before the Worker runs, which silently bypasses the content negotiation, Content-Signal header, and Link header.
  • Setting assets.run_worker_first: true makes the Worker handle every request and delegate to env.ASSETS.fetch() for static files.

Testing

  • Verified against the first live deploy (https://fabrik-website.tuist-cc0.workers.dev): Accept: text/markdown returned HTML, and HTML responses had no Content-Signal/Link headers.
  • After this change deploys, the Worker should intercept every request and emit the discovery headers + serve Markdown alternates when negotiated.
Comments

No GitHub comments yet.