https://github.com/joshuadavidthomas/cfworker-redirect-joshthomasdev
A simple Cloudflare Worker for redirecting requests from one domain to another
https://github.com/joshuadavidthomas/cfworker-redirect-joshthomasdev
cloudflare-workers typescript
Last synced: 6 months ago
JSON representation
A simple Cloudflare Worker for redirecting requests from one domain to another
- Host: GitHub
- URL: https://github.com/joshuadavidthomas/cfworker-redirect-joshthomasdev
- Owner: joshuadavidthomas
- License: mit
- Created: 2024-01-18T16:12:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T16:43:12.000Z (6 months ago)
- Last Synced: 2025-01-11T05:57:22.265Z (6 months ago)
- Topics: cloudflare-workers, typescript
- Language: TypeScript
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cfworker-redirect-joshthomasdev
A simple Cloudflare Worker to redirect the domain I previously used for my personal site ([joshuadavidthomas.com](https://joshuadavidthomas.com)) to the new, cooler one 😎 ([joshthomas.dev](https://joshthomas.dev)).
## Getting Started
1. Clone the repo locally.
```bash
git clone https://github.com/joshuadavidthomas/cfworker-redirect-joshthomasdev
```2. Change into the project directory and install dependencies.
```bash
cd cfworker-redirect-joshthomasdev
npm install
```3. Start the development server.
```bash
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.
```bash
npm run deploy
```## License
`cfworker-redirect-joshthomasdev` is licensed under the MIT License. See [LICENSE](./LICENSE) for more information.