Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-14T22:25:48.000Z (about 1 month ago)
- Last Synced: 2024-10-16T21:42:28.092Z (29 days ago)
- Topics: cloudflare-workers, typescript
- Language: TypeScript
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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.