Skip to content

feat: add churu holder; fix microsite links on preview deploys#95

Merged
cdtinney merged 3 commits into
mainfrom
cdtinney/churu-holder
Apr 24, 2026
Merged

feat: add churu holder; fix microsite links on preview deploys#95
cdtinney merged 3 commits into
mainfrom
cdtinney/churu-holder

Conversation

@cdtinney

@cdtinney cdtinney commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Description

  • Adds a new tool scenario — the Churu Holder — to the useyourdamnhands microsite.
  • Rewrites microsite project links to the current origin when the page is served from a non-production host (Cloudflare Pages preview URLs, localhost). On tinney.dev / www.tinney.dev, links still point at the production microsite domain (useyourdamnhands.com).
  • Earlier attempt used CF_PAGES_BRANCH / CF_PAGES_URL at build time — that does not work here because the build runs in GitHub Actions and wrangler pages deploy uploads a prebuilt artifact, so Cloudflare never sets those vars. This switches to a client-side rewrite driven by window.location.hostname + origin.
  • Opt-in via an optional micrositePath field on the project entry; projects without it are unaffected.

Testing

  • pnpm lint, pnpm format:check, pnpm typecheck, pnpm test (30 tests, incl. 6 for resolveProjectUrl), and pnpm build all pass locally
  • Inspected built HTML: anchors carry data-microsite-path="/hands" and the hoisted inline script rewrites href when hostname isn't tinney.dev / www.tinney.dev
  • Confirm on preview deploy: microsite project card links should now point at ${current-preview-host}/hands/, production should continue to point at useyourdamnhands.com

@github-actions

github-actions Bot commented Apr 24, 2026

Copy link
Copy Markdown

@cdtinney cdtinney changed the title feat: add churu holder to useyourdamnhands feat: add churu holder; fix microsite links on preview deploys Apr 24, 2026
@cdtinney cdtinney marked this pull request as ready for review April 24, 2026 21:53
@cdtinney cdtinney merged commit 8f1acfb into main Apr 24, 2026
5 checks passed
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