Skip to content

Commit 2a0d951

Browse files
threepointoneaboodman
authored andcommitted
feat: Update to wrangler v2
This PR updates `wrangler` to 2.x. This includes a simpler `wrangler.toml`, but with the same functionality/expectations as it already was, including the local simulation environment.
1 parent aaeb631 commit 2a0d951

File tree

5 files changed

+1039
-451
lines changed

5 files changed

+1039
-451
lines changed

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Running live at [replidraw-do.vercel.app](https://replidraw-do.vercel.app/).
99

1010
## Hacking Locally
1111

12-
The `dev-worker` command runs the worker using [Miniflare](https://miniflare.dev/), a really nice Cloudflare emulation environment. This is super convenient and doesn't require a CF account. Unfortunately, it also doesn't give you a realistic view of performance since everything is local.
12+
The `dev-worker` command runs the worker using [wrangler](https://developers.cloudflare.com/workers/wrangler/) in local mode, a really nice Cloudflare emulation environment. This is super convenient and doesn't require a CF account. Unfortunately, it also doesn't give you a realistic view of performance since everything is local.
1313

1414
```bash
1515
npm install
@@ -24,9 +24,7 @@ NEXT_PUBLIC_WORKER_HOST=ws://localhost:8787 npm run dev
2424
## Publishing Worker to Cloudflare
2525

2626
1. Get an account at Cloudflare: https://workers.cloudflare.com/.
27-
2. Install the [Wrangler v1 CLI tool](https://developers.cloudflare.com/workers/wrangler/cli-wrangler/install-update/)
28-
29-
**Important:** these instructions only work with v1 of the wrangler CLI. TODO: Figure out v2.
27+
2. Install the [Wrangler CLI tool](https://developers.cloudflare.com/workers/wrangler/get-started/)
3028

3129
Then:
3230

@@ -40,7 +38,7 @@ npm run dev
4038

4139
## Developing against Cloudflare
4240

43-
It is possible to develop using the Cloudflare network without destabilizing the production copy of a worker. This provides a more realistic idea of latency than Miniflare.
41+
It is possible to develop using the Cloudflare network without destabilizing the production copy of a worker. This provides a more realistic idea of latency than Wrangler.
4442

4543
```
4644
# Must have published at least once prior

0 commit comments

Comments
 (0)