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.
- 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
requires wrangler. only one route from wrangler.toml
can be active.
activate the localhost
route:
make dev
activate a specific route with HOST
:
HOST=example.com make dev