Skip to content

Commit b1ab51d

Browse files
remove all references to wrangler.toml (#48)
1 parent e188122 commit b1ab51d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pages/cloudflare/bindings.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Callout } from 'nextra/components';
77

88
#### How to configure your Next.js app so it can access bindings
99

10-
Install [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare), and then add a `wrangler.toml` file in the root directory of your Next.js app, as described in [Get Started](/cloudflare/get-started).
10+
Install [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare), and then add a [wrangler configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/) in the root directory of your Next.js app, as described in [Get Started](/cloudflare/get-started#3-create-a-wranglerjson-file).
1111

1212
#### How to access bindings in your Next.js app
1313

@@ -29,7 +29,7 @@ export async function GET(request) {
2929

3030
#### How to add bindings to your Worker
3131

32-
Add bindings to your Worker by [adding them to your `wrangler.toml` configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/).
32+
Add bindings to your Worker by adding them to your [wrangler configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/).
3333

3434
## TypeScript type declarations for bindings
3535

pages/cloudflare/get-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ npm install --save-dev wrangler@latest
3333
You must use Wrangler version `3.99.0` or later to deploy Next.js apps using `@opennextjs/cloudflare`.
3434
</Callout>
3535

36-
##### 3. Create a `wrangler.json` file
36+
##### 3. Create a wrangler configuration file
3737

3838
<Callout type='info'>
3939
This step is optional since `@opennextjs/cloudflare` creates this file for you during the build process (if not already present).
4040
</Callout>
4141

42-
A [`wrangler.json`](https://developers.cloudflare.com/workers/wrangler/configuration/) file is needed for your
42+
A [wrangler configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/) is needed for your
4343
application to be previewed and deployed, it is also where you configure your Worker and define what resources it can access via [bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings).
4444

45-
You can create one yourself with the following content:
45+
You can create one yourself in the root directory of your Next.js app with the name `wrangler.json` and the following content:
4646
```jsonc
4747
{
4848
"main": ".open-next/worker.js",

pages/cloudflare/troubleshooting.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ The Cloudflare Account you are deploying to is on the Workers Free plan, which [
1717

1818
### My app fails to build when I import a specific NPM package
1919

20-
First, make sure that the `nodejs_compat` compatibility flag is enabled, and your compatibility date is set to on or after "2024-09-23", in your `wrangler.toml` file. [Refer to the Workers docs](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) for more details on Node.js support in Cloudflare Workers.
20+
First, make sure that the `nodejs_compat` compatibility flag is enabled, and your compatibility date is set to on or after "2024-09-23", in your [wrangler configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/).
21+
Refer to the [Node.js Workers docs](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) for more details on Node.js support in Cloudflare Workers.
2122

2223
Some NPM packages define multiple exports. For example:
2324

0 commit comments

Comments
 (0)