hotfix: redirect docs.happyhq.workers.dev to docs-preview#3
Merged
Conversation
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>
Deploying with
|
| 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 |
5 tasks
This was referenced May 13, 2026
Closed
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Temporary redirect from the old
docs.happyhq.workers.devURL (shared with a few people before the worker was renamed todocs-preview) todocs-preview.happyhq.workers.dev. Preserves path and query via 302.Revert at cutover — the Launch checklist has a step to flip
workers_devback tofalseon production and drop the middleware redirect.Changes
wrangler.jsonc→env.production.workers_dev:false→true(so thedocs.happyhq.workers.devsubdomain is reachable at all).src/middleware.ts→ add a host check at the top: requests todocs.happyhq.workers.devreturn a 302 todocs-preview.happyhq.workers.devwith the same path/query. All other hosts continue the existing noindex logic.Activation
Takes effect after
pnpm run deploy:productionruns.🤖 Generated with Claude Code