Direct-file download routes + more visible iOS button#43
Merged
Conversation
Route desktop downloads through stable /download/{mac,windows,linux}
Vercel redirects that 302 straight to the actual installer asset
(.dmg/.msi/.AppImage) instead of landing users on the GitHub Releases
listing page. Version suffixes live only in vercel.json, bumped per
release, so the client-side paths never change.
Also raise the iOS (TestFlight) button's fill, border, and sub-text
contrast so it reads clearly as an actionable button rather than a
near-invisible ghost surface.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the hero download CTA to use stable /download/* routes (via Vercel redirects) that 302 directly to installer assets, and adjusts styling to make the iOS/TestFlight button more visually prominent.
Changes:
- Added Vercel redirect routes for macOS, Windows, and Linux direct installer downloads.
- Updated the Download CTA component + client-side platform retargeting to point at
/download/*instead of the GitHub Releases page. - Increased contrast/visibility of the iOS/TestFlight CTA button styling.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
vercel.json |
Adds /download/{mac,mac-intel,windows,linux} redirects to specific release assets. |
src/styles/global.css |
Improves visibility/contrast of the iOS/TestFlight button styles. |
src/scripts/main.js |
Retargets platform-specific CTA hrefs to stable /download/* routes. |
src/components/DownloadCTA.astro |
Makes the no-JS default CTA link point to /download/mac and updates inline documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+272
to
276
| // Stable Vercel redirect routes → direct installer downloads | ||
| // (see vercel.json). Version suffixes live server-side, so these | ||
| // paths never change per release. | ||
| var DOWNLOAD = { mac: '/download/mac', win: '/download/windows', linux: '/download/linux' }; | ||
| var testflightUrl = cta.getAttribute('data-testflight-url'); |
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.
What
Two changes to the hero download CTA:
Direct-file downloads, not the Releases page. Desktop buttons now route through stable
/download/{mac,windows,linux}Vercel redirects (seevercel.json) that 302 straight to the actual installer asset (.dmg/.msi/.AppImage). Users get a real file download instead of landing on the GitHub Releases listing. Version suffixes live only invercel.json(bumped per release), so the client-side paths never change./download/mac→ Apple Silicon.dmg/download/mac-intel→ Intel.dmg/download/windows→.msi/download/linux→.AppImageiOS button visibility. The TestFlight button's fill, border, and sub-text contrast were raised so it reads clearly as an actionable button instead of a near-invisible ghost surface.
Notes
<a href>s./download/*redirects invercel.json.🤖 Generated with Claude Code