Skip to content

fix: pin @decocms/start to Host-preserving fallback proxy (deco-start#308) - #41

Open
hugo-ccabral wants to merge 1 commit into
mainfrom
fix/ab-fallback-preserve-host
Open

fix: pin @decocms/start to Host-preserving fallback proxy (deco-start#308)#41
hugo-ccabral wants to merge 1 commit into
mainfrom
fix/ab-fallback-preserve-host

Conversation

@hugo-ccabral

Copy link
Copy Markdown
Contributor

Problem

storefront.deco.site returns 404 on every request. The A/B wrapper works as configured (SITES_KVratio: 0 → 100% fallback bucket), but proxyToFallback in @decocms/start drops the incoming Host header, so the EKS ingress LB receives Host: <fallbackOrigin> and can't route to the site — it answers with its own 404, which the worker relays (x-deco-bucket: fallback).

Fix

Pins @decocms/start to decocms/deco-start#308 (commit b5b313e), which forwards Host: <site hostname> on the fallback proxy — same behavior as the original cf-dispatch gateway.

Temporary pin: revert to a published ^6.x version once deco-start #308 is merged and released.

Testing

  • bun run build passes; built worker bundle contains the Host-preserving proxy (set(\"host\", url.hostname))
  • After deploy, verify both previously-failing calls return the EKS site:
    curl -i https://storefront.deco.site/
    curl -i -H "Host: storefront.deco.site" https://decoserverless.deco.site/

🤖 Generated with Claude Code

Points @decocms/start at decocms/deco-start#b5b313e (PR #308), which
makes proxyToFallback forward the original Host header instead of
dropping it. The EKS ingress LB (fallbackOrigin) routes by Host, so
without it every fallback-bucket request on storefront.deco.site
returned the origin's 404.

Revert to a published version once deco-start PR #308 is released.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
storefront-tanstack d28d767 Commit Preview URL

Branch Preview URL
Jul 06 2026, 08:09 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant