feat: add churu holder; fix microsite links on preview deploys#95
Merged
Conversation
Preview deploymenthttps://46cea71e.tinney-dev.pages.dev ( Previous previews |
2f51d80 to
9a4ea77
Compare
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.
Description
tinney.dev/www.tinney.dev, links still point at the production microsite domain (useyourdamnhands.com).CF_PAGES_BRANCH/CF_PAGES_URLat build time — that does not work here because the build runs in GitHub Actions andwrangler pages deployuploads a prebuilt artifact, so Cloudflare never sets those vars. This switches to a client-side rewrite driven bywindow.location.hostname+origin.micrositePathfield on the project entry; projects without it are unaffected.Testing
pnpm lint,pnpm format:check,pnpm typecheck,pnpm test(30 tests, incl. 6 forresolveProjectUrl), andpnpm buildall pass locallydata-microsite-path="/hands"and the hoisted inline script rewriteshrefwhenhostnameisn'ttinney.dev/www.tinney.dev${current-preview-host}/hands/, production should continue to point atuseyourdamnhands.com