@hubpav/hwio-web-worker
v0.7.1
Published
Shared Cloudflare Worker handler and security-header builder for the HARDWARIO static sites: canonical-host redirect, CSP report collector, Early Hints, _headers generation.
Readme
@hubpav/hwio-web-worker
hwioWorker(options) is the fetch handler for a HARDWARIO static site on Cloudflare Workers:
CSP report collector (POST /csp-report → 204 + one JSON log line), optional canonical-host
301, optional Early Hints for fonts. @hubpav/hwio-web-worker/headers builds the security
headers and renders the _headers file the hwioUi() Astro integration writes at build time.
