a simple tool for redirecting or returning custom responses. designed with the goal of having a single, simple service that can gently handle decommissioned api and websites.
requires wrangler. only one route from wrangler.toml
can be active.
activate the test
route:
make dev # start worker
curl localhost:8787 # use worker
activate a specific route with HOST
:
HOST=example.com make dev
- add source and desired handling to
src/config.js
- add a
route
for the domain towrangler.toml
- on commit to
main
the worker is deployed by github actions - update source cname record to
redirectorator.<account-name>.workers.dev