Skip to content

Commit 2e60bc5

Browse files
authored
chore: update docs, reflect 0.17.0, wrangler 2.1.9 (#67)
1 parent 0a9b045 commit 2e60bc5

File tree

3 files changed

+834
-546
lines changed

3 files changed

+834
-546
lines changed

README.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,18 @@ npm run dev-worker
2121
NEXT_PUBLIC_WORKER_HOST=ws://localhost:8787 npm run dev
2222
```
2323

24-
Once the server comes up, you can also press `l` to switch out of "local mode".
25-
In local mode, it uses the Miniflare emulator to serve, so it's very fast, but
26-
also not completely accurate representation of production. Switching out of local
27-
mode runs the worker on Cloudflare's edge network, just like it runs in production,
28-
which gives a more realistic view of performance.
29-
3024
## Publishing Worker to Cloudflare
3125

3226
First, get an account at Cloudflare: https://workers.cloudflare.com/.
3327

3428
Then:
3529

36-
```
30+
```bash
3731
# publish to Cloudflare
3832
npx wrangler publish
3933

4034
# run frontend
41-
npm run dev
35+
NEXT_PUBLIC_WORKER_HOST=wss://<host from previous command> npm run dev
4236
```
4337

4438
## Building your Own Thing

0 commit comments

Comments
 (0)