From 90dc104c08761232aae866a994d98b855dd71da1 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Fri, 8 Nov 2024 11:54:34 +0000 Subject: [PATCH 1/2] add link to bindings doc in the getting started local dev section --- pages/cloudflare/get-started.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/cloudflare/get-started.mdx b/pages/cloudflare/get-started.mdx index 84a841d..9bcbb14 100644 --- a/pages/cloudflare/get-started.mdx +++ b/pages/cloudflare/get-started.mdx @@ -125,6 +125,8 @@ You can continue to run `next dev` when developing locally. In step 3, we also added the `npm run preview:worker`, which allows you to quickly preview your app running locally in the Workers runtime, rather than in Node.js. This allows you to test changes in the same runtime as your app will run in when deployed to Cloudflare. +During local development, either via `next dev` or `npm run preview:worker`, you can access local versions of Cloudflare bindings as indicated in the [bindings documentation](./bindings). + ##### 7. Deploy to Cloudflare Workers Either deploy via the command line: From 47c1a6ac6d42fc0d25b202b4ccdbd1ecf7b1aa1a Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Fri, 8 Nov 2024 12:28:18 +0000 Subject: [PATCH 2/2] move bindings sentence --- pages/cloudflare/get-started.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/cloudflare/get-started.mdx b/pages/cloudflare/get-started.mdx index 9bcbb14..3e47e5e 100644 --- a/pages/cloudflare/get-started.mdx +++ b/pages/cloudflare/get-started.mdx @@ -123,9 +123,9 @@ And you'll want to replace any uses of `getRequestContext` from `@cloudflare/nex You can continue to run `next dev` when developing locally. -In step 3, we also added the `npm run preview:worker`, which allows you to quickly preview your app running locally in the Workers runtime, rather than in Node.js. This allows you to test changes in the same runtime as your app will run in when deployed to Cloudflare. +During local development, you can access local versions of Cloudflare bindings as indicated in the [bindings documentation](./bindings). -During local development, either via `next dev` or `npm run preview:worker`, you can access local versions of Cloudflare bindings as indicated in the [bindings documentation](./bindings). +In step 3, we also added the `npm run preview:worker`, which allows you to quickly preview your app running locally in the Workers runtime, rather than in Node.js. This allows you to test changes in the same runtime as your app will run in when deployed to Cloudflare. ##### 7. Deploy to Cloudflare Workers