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.
Flights

Investigate, reproduce, or fix this item in an isolated repository. Each Flight preserves its outcome and agent session.

New Flights are paused Configure model inference, GitHub, and a sandbox provider to start another Flight. Existing results remain available below.
No Flights yet

Start a Flight and preserve its objective, outcome, and session here.

Comments

No GitHub comments yet.