Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 990 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 990 Bytes

cfworker-redirect-joshthomasdev

A simple Cloudflare Worker to redirect the domain I previously used for my personal site (joshuadavidthomas.com) to the new, cooler one 😎 (joshthomas.dev).

Getting Started

  1. Clone the repo locally.

    git clone https://github.com/joshuadavidthomas/cfworker-redirect-joshthomasdev
  2. Change into the project directory and install dependencies.

    cd cfworker-redirect-joshthomasdev
    npm install
  3. Start the development server.

    npm run start
  4. Make changes to the code in src/index.ts and test them out at http://localhost:8787.

  5. Deploy to Cloudflare Workers when ready. You will be prompted to login to Cloudflare via OAuth if you haven't already.

    npm run deploy

License

cfworker-redirect-joshthomasdev is licensed under the MIT License. See LICENSE for more information.