Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 536 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 536 Bytes

Redirect Cloudflare Worker

This is a repo with a simple Cloudflare Worker that redirects all requests to a single URL. It is used to redirect the wasp-lang.dev domain to the wasp.sh domain.

Make sure you have Wrangler (Cloudflare dev tools) installed globaly.

npm install -g wrangler

Running it locally

  1. npm install
  2. npm run dev

Edit the worker.js file and test it out locally on localhost:8787.

Deploying

  1. Login with wrangler login into the Wasp Cloudflare account
  2. npm run deploy