Skip to content

Commit

Permalink
Cloudflare tunnel development
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobMGEvans committed Aug 29, 2023
1 parent 9458ffc commit 9367400
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,12 @@ https -A bearer -a <TURBO_TOKEN> POST <baseURL>/artifacts/manual-cache-bust expi
```

Setting the value to `0` will purge the entire cache.

## How can I develop & test locally?

Well since we are already using Cloudflare, let's keep that going. `cloudflared` allows for creating a tunnel to your `http://127.0.0.1:8787` and exposing it to the internet. This will allow others direct their TurboRepo to the local dev server by setting`TURBO_API` to `<host>`.
The command to create a tunnel looks like:

```bash
cloudflared tunnel --hostname <host> --url http://127.0.0.1:8787/ --name r2-archive (or whatever you want to name it)
```

0 comments on commit 9367400

Please sign in to comment.