- Fork this repo
- Sign up with Cyclic.sh
- Navigate to https://app.cyclic.sh/
- Deploy a new app.
- Click the "Link Your Own" tab.
- Select & grant access to your fork
- Click the
🔧
wrench icon for your fork deployment - Click the
Variables
tab - Add a new variable named
WEBSITE
and enter your website as the value. (eg:https://host/
) - Add a new variable named
PASSWORD
and enter some secret password you will use to list/delete redirects. (eg:this is a password
) - Add a new variable named
DEPLOYMENT
and enter the url where you intent to deploy the application WITH NO TRAILING SLASH. (eg:https://host
)
Less experienced users are keen to paste a whole shitload of webhooks with a 301 status, not realizing that most webhooks only support POST operations, while 301 redirects do not.
To help educate, and also get rid of all this extra crap, the ./scripts/delete_301_webhooks.js
script will delete redirects that look like webhooks, but don't use a 307
status code.
For webhooks that look like discord webhooks (99% of them), it also sends a friendly message.
export DEPLOYMENT=https://link.iamjakoby.com;
export PASSWORD=password;
./scripts/delete_301_webhooks.js;