Skip to content
Branch: develop
Go to file
Code

Latest commit

msfjarvis committed 9cc76c8 Jun 26, 2020
src: capitalization matters
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

redirekt

A dead simple and very stupid Cloudflare Worker that does straightforward redirections to GitHub.

Example redirections

https://msfjarvis.dev/g => https://github.com/msfjarvis
https://msfjarvis.dev/g/redirekt => https://github.com/msfjarvis/redirekt
https://msfjarvis.dev/g/redirekt/8436184361 => https://github.com/msfjarvis/redirekt/commit/8436184361
https://download.msfjarvis.dev/adblock => https://dl.msfjarvis.dev/adblock

How to use

This bit of code is very personalized to my needs, so there's no 1-2-3 steps to just make it work for you. I've abstracted away some of the 'personalization' aspect to easily changeable variables so it is easier to make this fit your needs.

Follow the Worker documentation to setup wrangler, then create a new app using this repository as the template. src/handler.ts has the real logic for this worker. It's fairly simple, so hack away as per your needs and then use wrangler publish to deploy.

About

Super simple Cloudflare Worker that handles some redirections for me

Topics

Resources

License

Releases

No releases published

Sponsor this project

  •  
Learn more about GitHub Sponsors
You can’t perform that action at this time.