Skip to content

Commit 7254c4d

Browse files
committed
PCX Review
1 parent 9b9fa1b commit 7254c4d

File tree

13 files changed

+27
-20
lines changed

13 files changed

+27
-20
lines changed

src/content/docs/browser-rendering/faq.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you cannot find the answer you are looking for, join us on [Discord](https://
2525
Not yet. Local development currently has the following limitation(s):
2626
- Requests larger than 1 MB are not supported.
2727

28-
To interact with a real headless browser during local development, set `"remote" : true` in the Browser binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
28+
<Render file="remote-binding-note" product="workers" />
2929

3030
### Will Browser Rendering bypass Cloudflare's Bot Protection?
3131

src/content/docs/browser-rendering/how-to/pdf-generation.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 1
66
---
77

8-
import { Aside, WranglerConfig, PackageManagers } from "~/components";
8+
import { Aside, WranglerConfig, PackageManagers, Render } from "~/components";
99

1010
As seen in [this Workers bindings guide](/browser-rendering/workers-bindings/screenshots/), Browser Rendering can be used to generate screenshots for any given URL. Alongside screenshots, you can also generate full PDF documents for a given webpage, and can also provide the webpage markup and style ourselves.
1111

@@ -36,14 +36,10 @@ The following example shows you how to generate a PDF using [Puppeteer](/browser
3636
browser = { binding = "BROWSER" }
3737
```
3838

39-
:::note
40-
41-
During local development the configuration above will use a local browser simulation, to instead interact with a real headless browser during local development, set `"remote" : true` in the Browser binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
42-
43-
:::
44-
4539
</WranglerConfig>
4640

41+
<Render file="remote-binding-note" product="workers" />
42+
4743
4. Replace the contents of `src/index.ts` (or `src/index.js` for JavaScript projects) with the following skeleton script:
4844

4945
```ts

src/content/docs/browser-rendering/platform/wrangler.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ const browser = await puppeteer.launch(env.MYBROWSER);
4646

4747
Run `npx wrangler dev` to test your Worker locally.
4848

49-
To interact with a real headless browser during local development, set `"remote" : true` in the Browser binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
49+
<Render file="remote-binding-note" product="workers" />

src/content/docs/browser-rendering/workers-bindings/browser-rendering-with-DO.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class Browser {
212212

213213
Run `npx wrangler dev` to test your Worker locally.
214214

215-
To interact with a real headless browser during local development, set `"remote" : true` in the Browser binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
215+
<Render file="remote-binding-note" product="workers" />
216216

217217
## 7. Deploy
218218

src/content/docs/browser-rendering/workers-bindings/reuse-sessions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Besides `puppeteer.sessions()`, we have added other methods to facilitate [Sessi
146146

147147
Run `npx wrangler dev` to test your Worker locally.
148148

149-
To interact with a real headless browser during local development, set `"remote" : true` in the Browser binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
149+
<Render file="remote-binding-note" product="workers" />
150150

151151
To test go to the following URL:
152152

src/content/docs/d1/best-practices/local-development.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 8
66
---
77

8-
import { WranglerConfig } from "~/components";
8+
import { WranglerConfig, Render } from "~/components";
99

1010
D1 has fully-featured support for local development, running the same version of D1 as Cloudflare runs globally. Local development uses [Wrangler](/workers/wrangler/install-and-update/), the command-line interface for Workers, to manage local development sessions and state.
1111

@@ -67,7 +67,7 @@ database_id = "c020574a-5623-407b-be0c-cd192bab9545"
6767

6868
</WranglerConfig>
6969

70-
Note that `wrangler dev` separates local and production (remote) data. A local session does not have access to your production data by default. To access your production (remote) database, set `"remote" : true` in the D1 binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings). Any changes you make when running against a remote database cannot be undone.
70+
Note that `wrangler dev` separates local and production (remote) data. A local session does not have access to your production data by default. To access your production (remote) database, set `"remote" : true` in the D1 binding configuration. Refer to the [remote bindings documentation](/workers/development-testing/#remote-bindings) for more information. Any changes you make when running against a remote database cannot be undone.
7171

7272
Refer to the [`wrangler dev` documentation](/workers/wrangler/commands/#dev) to learn more about how to configure a local development session.
7373

src/content/docs/d1/tutorials/build-an-api-to-access-d1/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Upon successful execution, a new table will be added to your database.
280280

281281
:::note
282282

283-
The table will be created in the local instance of the database. If you want to add this table to your production database set `"remote" : true` in the D1 binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
283+
The table will be created in the local instance of the database. If you want to add this table to your production database set `"remote" : true` in the D1 binding configuration. Refer to the [remote bindings documentation](/workers/development-testing/#remote-bindings) for more information.
284284

285285
:::
286286

src/content/docs/d1/tutorials/using-read-replication-for-e-com/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ curl -X POST http://localhost:8787/api/product \
857857

858858
:::note
859859

860-
Read replication is only used when the application has been [deployed](/d1/tutorials/using-read-replication-for-e-com/#step-9-deploy-the-application). D1 does not create read replicas when you develop locally. To test it locally, you can set `"remote" : true` in the D1 binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
860+
Read replication is only used when the application has been [deployed](/d1/tutorials/using-read-replication-for-e-com/#step-9-deploy-the-application). D1 does not create read replicas when you develop locally.
861+
862+
To test it locally, you can set `"remote" : true` in the D1 binding configuration. Refer to the [remote bindings documentation](/workers/development-testing/#remote-bindings) for more information.
861863

862864
:::
863865

src/content/docs/kv/concepts/kv-bindings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default {
6060

6161
When you use Wrangler to develop locally with the `wrangler dev` command, Wrangler will default to using a local version of KV to avoid interfering with any of your live production data in KV. This means that reading keys that you have not written locally will return `null`.
6262

63-
To have `wrangler dev` connect to your Workers KV namespace running on Cloudflare's global network, set `"remote" : true` in the KV binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
63+
To have `wrangler dev` connect to your Workers KV namespace running on Cloudflare's global network, set `"remote" : true` in the KV binding configuration. Refer to the [remote bindings documentation](/workers/development-testing/#remote-bindings) for more information.
6464

6565
<WranglerConfig>
6666

src/content/docs/kv/get-started.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ You can view key-value pairs directly from the dashboard.
336336

337337
When using [`wrangler dev`](/workers/wrangler/commands/#dev) to develop locally, Wrangler defaults to using a local version of KV to avoid interfering with any of your live production data in KV. This means that reading keys that you have not written locally returns null.
338338

339-
To have `wrangler dev` connect to your Workers KV namespace running on Cloudflare's global network, you can set `"remote" : true` in the KV binding configuration. You can learn more in our [remote bindings documentation](/workers/development-testing/#remote-bindings).
339+
To have `wrangler dev` connect to your Workers KV namespace running on Cloudflare's global network, you can set `"remote" : true` in the KV binding configuration. Refer to the [remote bindings documentation](/workers/development-testing/#remote-bindings) for more information.
340340

341-
Refer to the [KV binding docs](/kv/concepts/kv-bindings/#use-kv-bindings-when-developing-locally) for more information.
341+
Also refer to [KV binding docs](/kv/concepts/kv-bindings/#use-kv-bindings-when-developing-locally).
342342

343343
:::
344344

0 commit comments

Comments
 (0)