Skip to content

hotfix: redirect docs.happyhq.workers.dev to docs-preview#3

Merged
jrphilo merged 1 commit into
mainfrom
hotfix/redirect-workers-dev-to-preview
Apr 21, 2026
Merged

hotfix: redirect docs.happyhq.workers.dev to docs-preview#3
jrphilo merged 1 commit into
mainfrom
hotfix/redirect-workers-dev-to-preview

Conversation

@jrphilo
Copy link
Copy Markdown
Collaborator

@jrphilo jrphilo commented Apr 21, 2026

Summary

Temporary redirect from the old docs.happyhq.workers.dev URL (shared with a few people before the worker was renamed to docs-preview) to docs-preview.happyhq.workers.dev. Preserves path and query via 302.

Revert at cutover — the Launch checklist has a step to flip workers_dev back to false on production and drop the middleware redirect.

Changes

  • wrangler.jsoncenv.production.workers_dev: falsetrue (so the docs.happyhq.workers.dev subdomain is reachable at all).
  • src/middleware.ts → add a host check at the top: requests to docs.happyhq.workers.dev return a 302 to docs-preview.happyhq.workers.dev with the same path/query. All other hosts continue the existing noindex logic.

Activation

Takes effect after pnpm run deploy:production runs.

🤖 Generated with Claude Code

Temporary convenience: a couple of folks were given the old
docs.happyhq.workers.dev URL before the rename. Enable workers_dev on
the production worker and have src/middleware.ts redirect that hostname
to docs-preview.happyhq.workers.dev (302, path + query preserved).

Remove at cutover — the Launch checklist has a step to revert
workers_dev to false and drop the middleware redirect block.

Co-Authored-By: Claude Opus 4.7 (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
docs-preview cd06bbc Commit Preview URL

Branch Preview URL
Apr 21 2026, 09:30 PM

@jrphilo jrphilo merged commit 4485aaa into main Apr 21, 2026
1 check passed
jrphilo added a commit that referenced this pull request Apr 28, 2026
…#36)

Post-launch cleanup. Apex cutover is complete, so the temporary
docs.happyhq.workers.dev → docs-preview redirect (added in #3) and
workers_dev: true on the production worker are no longer needed.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
jrphilo added a commit that referenced this pull request May 13, 2026
Combines #52 and #53 into a single PR off main, avoiding the
rebase cascade after #44/#42/#54/#55 churn. Both are mechanical
pnpm.overrides additions:

- protobufjs ^7.5.6 — clears alerts #7-14
  (GHSA-q6x5-8v7m-xcrf, GHSA-jvwf-75h9-cwgg, GHSA-75px-5xx7-5xc7,
   GHSA-fx83-v9x8-x52w, GHSA-2pr8-phx7-x9h3, GHSA-66ff-xgx4-vchm,
   GHSA-685m-2w69-288q). Reached via posthog-js OTLP exporter;
   not directly imported by our app.

- fast-xml-builder ^1.1.7 — clears alerts #3, #4
  (GHSA-5wm8-gmm8-39j9, GHSA-45c6-75p6-83cc). Reached via
   @opennextjs/cloudflare → AWS SDK build/deploy tooling; not
   directly used.

Replaces #52, #53.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
jrphilo added a commit that referenced this pull request May 13, 2026
…er (#57)

Combines #52 and #53 into a single PR off main, avoiding the
rebase cascade after #44/#42/#54/#55 churn. Both are mechanical
pnpm.overrides additions:

- protobufjs ^7.5.6 — clears alerts #7-14
  (GHSA-q6x5-8v7m-xcrf, GHSA-jvwf-75h9-cwgg, GHSA-75px-5xx7-5xc7,
   GHSA-fx83-v9x8-x52w, GHSA-2pr8-phx7-x9h3, GHSA-66ff-xgx4-vchm,
   GHSA-685m-2w69-288q). Reached via posthog-js OTLP exporter;
   not directly imported by our app.

- fast-xml-builder ^1.1.7 — clears alerts #3, #4
  (GHSA-5wm8-gmm8-39j9, GHSA-45c6-75p6-83cc). Reached via
   @opennextjs/cloudflare → AWS SDK build/deploy tooling; not
   directly used.

Replaces #52, #53.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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