Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 808 Bytes

File metadata and controls

25 lines (18 loc) · 808 Bytes

redirectorator

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.

run locally

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

usage

  1. add source and desired handling to src/config.js
  2. add a route for the domain to wrangler.toml
  3. on commit to main the worker is deployed by github actions
  4. update source cname record to redirectorator.<account-name>.workers.dev