Skip to content

Commit 5c81c43

Browse files
committed
Making sure all imports are at the top of the page.
1 parent ecf36a3 commit 5c81c43

File tree

75 files changed

+98
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+98
-202
lines changed

src/content/docs/ai-gateway/integrations/aig-workers-ai-binding.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pcx_content_type: tutorial
44
updated: 2024-10-17
55
---
66

7-
import { Render, PackageManagers } from "~/components";
7+
import { Render, PackageManagers, WranglerConfig } from "~/components";
88

99
This guide will walk you through setting up and deploying a Workers AI project. You will use [Workers](/workers/), an AI Gateway binding, and a large language model (LLM), to deploy your first AI-powered application on the Cloudflare global network.
1010

@@ -49,8 +49,6 @@ You must create an AI binding for your Worker to connect to Workers AI. Bindings
4949

5050
To bind Workers AI to your Worker, add the following to the end of your `wrangler.json` file:
5151

52-
import { WranglerConfig } from "~/components";
53-
5452
<WranglerConfig>
5553

5654
```toml title="wrangler.toml"

src/content/docs/analytics/analytics-engine/get-started.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ head:
99

1010
---
1111

12-
import { DirectoryListing } from "~/components"
12+
import { DirectoryListing, WranglerConfig } from "~/components"
1313

1414
## 1. Name your dataset and add it to your Worker
1515

1616
Add the following to your Wrangler configuration file to create a [binding](/workers/runtime-apis/bindings/) to a Workers Analytics Engine dataset. A dataset is like a table in SQL: the rows and columns should have consistent meaning.
1717

18-
import { WranglerConfig } from "~/components";
19-
2018
<WranglerConfig>
2119

2220
```toml

src/content/docs/analytics/analytics-engine/worker-querying.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ head:
88
content: Querying Workers Analytics Engine from a Worker
99
---
1010

11+
12+
import { WranglerConfig } from "~/components";
13+
1114
If you want to access Analytics Engine data from within a Worker you can use `fetch` to access the SQL API. The API can return JSON data that is easy to interact with in JavaScript.
1215

1316
## Authentication
@@ -48,8 +51,6 @@ First the environment variables are set up with the account ID and API token.
4851

4952
The account ID is set in the Wrangler configuration file:
5053

51-
import { WranglerConfig } from "~/components";
52-
5354
<WranglerConfig>
5455

5556
```toml

src/content/docs/browser-rendering/get-started/browser-rendering-with-DO.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sidebar:
1414
order: 2
1515
---
1616

17-
import { Render, PackageManagers } from "~/components";
17+
import { Render, PackageManagers, WranglerConfig } from "~/components";
1818

1919
By following this guide, you will create a Worker that uses the Browser Rendering API along with [Durable Objects](/durable-objects/) to take screenshots from web pages and store them in [R2](/r2/).
2020

@@ -75,8 +75,6 @@ Configure your `browser-worker` project's [Wrangler configuration file](/workers
7575

7676
Update your Wrangler configuration file with the Browser Rendering API binding, the R2 bucket you created and a Durable Object:
7777

78-
import { WranglerConfig } from "~/components";
79-
8078
<WranglerConfig>
8179

8280
```toml

src/content/docs/browser-rendering/get-started/reuse-sessions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Create a new Worker project named `browser-worker` by running:
3535

3636
## 2. Install Puppeteer
3737

38-
In your `browser-worker` directory, install Cloudflares [fork of Puppeteer](/browser-rendering/platform/puppeteer/):
38+
In your `browser-worker` directory, install Cloudflare's [fork of Puppeteer](/browser-rendering/platform/puppeteer/):
3939

4040
```sh
4141
npm install @cloudflare/puppeteer --save-dev

src/content/docs/browser-rendering/get-started/screenshots.mdx

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

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

1010
By following this guide, you will create a Worker that uses the Browser Rendering API to take screenshots from web pages. This is a common use case for browser automation.
1111

@@ -62,11 +62,9 @@ Configure your `browser-worker` project's [Wrangler configuration file](/workers
6262

6363
Update your Wrangler configuration file with the Browser Rendering API binding and the KV namespaces you created:
6464

65-
import { WranglerConfig } from "~/components";
66-
6765
<WranglerConfig>
6866

69-
```toml
67+
```toml title="wrangler.toml"
7068
name = "browser-worker"
7169
main = "src/index.js"
7270
compatibility_date = "2023-03-14"

src/content/docs/cloudflare-for-platforms/workers-for-platforms/configuration/outbound-workers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ title: Outbound Workers
44

55
---
66

7-
Outbound Workers sit between your customer’s Workers and the public Internet. They give you visibility into all outgoing `fetch()` requests from user Workers.
7+
import { WranglerConfig } from "~/components";
8+
9+
Outbound Workers sit between your customer's Workers and the public Internet. They give you visibility into all outgoing `fetch()` requests from user Workers.
810

911
![Outbound Workers diagram information](~/assets/images/cloudflare-for-platforms/outbound-worker-diagram.png)
1012

@@ -25,8 +27,6 @@ To use Outbound Workers:
2527

2628
Make sure that you have `[email protected]` or later [installed](/workers/wrangler/install-and-update/).
2729

28-
import { WranglerConfig } from "~/components";
29-
3030
<WranglerConfig>
3131

3232
```toml

src/content/docs/cloudflare-for-platforms/workers-for-platforms/get-started/configuration.mdx

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

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

1010
## Prerequisites:
1111

@@ -115,8 +115,6 @@ cd my-dispatcher
115115

116116
Open the Wrangler file in your project directory, and add the dispatch namespace binding:
117117

118-
import { WranglerConfig } from "~/components";
119-
120118
<WranglerConfig>
121119

122120
```toml

src/content/docs/cloudflare-for-platforms/workers-for-platforms/get-started/developing-with-wrangler.mdx

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

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

1010
To test your [Dispatch Worker](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dynamic-dispatch-worker), [user Worker](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#user-workers) and [Outbound Worker](/cloudflare-for-platforms/workers-for-platforms/configuration/outbound-workers/) before deploying to production, you can use [Wrangler](/workers/wrangler) for development and testing.
1111

@@ -54,8 +54,6 @@ export default {
5454

5555
Update the Wrangler file for customer-worker-1 and add the dispatch namespace:
5656

57-
import { WranglerConfig } from "~/components";
58-
5957
<WranglerConfig>
6058

6159
```toml

src/content/docs/d1/reference/migrations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar:
66

77
---
88

9+
import { WranglerConfig } from "~/components";
10+
911
Database migrations are a way of versioning your database. Each migration is stored as an `.sql` file in your `migrations` folder. The `migrations` folder is created in your project directory when you create your first migration. This enables you to store and track changes throughout database development.
1012

1113
## Features
@@ -24,8 +26,6 @@ By default, migrations are created in the `migrations/` folder in your Worker pr
2426

2527
This location and table name can be customized in your Wrangler file, inside the D1 binding.
2628

27-
import { WranglerConfig } from "~/components";
28-
2929
<WranglerConfig>
3030

3131
```toml

0 commit comments

Comments
 (0)