
Pages to Workers: The Defaults We Had to Rebuild
We moved three apps from Pages to Workers, then changed Cloudflare accounts. We had to rebuild defaults for headers, redirects and deployment targets.

Showing 33-44 of 104 posts

We moved three apps from Pages to Workers, then changed Cloudflare accounts. We had to rebuild defaults for headers, redirects and deployment targets.

We build two Workers from one React Router app, pass programme identity through typed context, and use stored rows for scheduled work.

We found a session lookup in the language helper, outside our list of guards. We moved resolution into layout middleware and gave the context three states.

A local browser experiment found two ordering bugs in our activity line. We follow the handoffs between Astro, Workers and the visible text.

We omit names, coarsen times and mask country pairs before storage, then derive every public view from that record and remove its id at runtime.

We had recorded the volunteer's answer, but still removed the learner from the lesson. Here is where live signals end and durable outcomes begin.

We could reuse an idempotency key and still change the payload after a deploy. We now store the first attempt’s message fields so a retry can reuse them.

We keep Astro pages static while handling old measurements, failed source reads and island requests that never replace the fallback.

We restored loader data with one nonce input. For late Suspense content, we needed the same nonce in another place.

We can capture an error and still struggle to follow the failure. We compare a shared trace with a request ID across browser and Worker.

We refresh one unread count without rerunning the page's loaders. To keep the page after a rejected background panel load, we return failure as data.

We keep WebSocket upgrades outside Astro as a precaution. Locally, a copied response kept its socket; a rebuild without the socket broke the upgrade.