Skip to content

fix(redirects): use Cloudflare Worker for install script redirects#10

Merged
CalvinAllen merged 1 commit intomainfrom
fix/redirects/use-worker-for-install-scripts
Jan 24, 2026
Merged

fix(redirects): use Cloudflare Worker for install script redirects#10
CalvinAllen merged 1 commit intomainfrom
fix/redirects/use-worker-for-install-scripts

Conversation

@CalvinAllen
Copy link
Contributor

@CalvinAllen CalvinAllen commented Jan 24, 2026

Summary

  • Replace _redirects file with a Cloudflare Worker for more reliable redirect handling
  • Worker handles /install.ps1 and /install.sh redirects to GitHub releases
  • Falls through to static assets for all other requests

Test plan

  • Verify build passes in CI
  • After deploy, test dtvem.io/install.ps1 redirects correctly
  • After deploy, test dtvem.io/install.sh redirects correctly
  • Verify other pages still load correctly

Closes #9

Replace _redirects file with a Cloudflare Worker to handle redirects
for /install.ps1 and /install.sh to the GitHub releases. This provides
more control and reliability for redirect handling.

Closes CodingWithCalvin/dtvem.cli#200
@CalvinAllen CalvinAllen merged commit 49d60ad into main Jan 24, 2026
5 checks passed
@CalvinAllen CalvinAllen deleted the fix/redirects/use-worker-for-install-scripts branch January 24, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fix(redirects): use Cloudflare Worker for install script redirects

1 participant