From fd0f6e82185086c9cfccaf82150578d1ee0e014a Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Mon, 30 Sep 2024 09:49:25 +0100 Subject: [PATCH 1/3] fix incorrect pnpm commands and add npm commands in package readme --- packages/cloudflare/README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/cloudflare/README.md b/packages/cloudflare/README.md index e6e15e26..52434b08 100644 --- a/packages/cloudflare/README.md +++ b/packages/cloudflare/README.md @@ -13,6 +13,8 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/ - add the following `devDependencies` to the `package.json`: ```bash + npm add -D wrangler@latest @opennextjs/cloudflare + # or pnpm add -D wrangler@latest @opennextjs/cloudflare ``` @@ -36,6 +38,8 @@ You can enable Incremental Static Regeneration ([ISR](https://nextjs.org/docs/ap ```bash npx wrangler kv namespace create NEXT_CACHE_WORKERS_KV + # or + pnpm wrangler kv namespace create NEXT_CACHE_WORKERS_KV ``` - Paste the snippet to your `wrangler.toml`: @@ -60,12 +64,16 @@ Run the following commands to preview the production build of your application l - build the app and adapt it for Cloudflare ```bash - pnpx cloudflare + npx cloudflare + # or + pnpm cloudflare ``` - Preview the app in Wrangler ```bash + npx wrangler dev + # or pnpm wrangler dev ``` @@ -76,9 +84,7 @@ Deploy your application to production with the following: - build the app and adapt it for Cloudflare ```bash - pnpx cloudflare - ``` - - ```bash - pnpm wrangler deploy + npx cloudflare && npx wrangler deploy + # or + pnpm cloudflare && pnpm wrangler deploy ``` From 58260533f897f071a6f53be6926642754c5dc404 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Mon, 30 Sep 2024 09:57:20 +0100 Subject: [PATCH 2/3] add yarn commands to package readme --- packages/cloudflare/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/cloudflare/README.md b/packages/cloudflare/README.md index 52434b08..eb2cfe86 100644 --- a/packages/cloudflare/README.md +++ b/packages/cloudflare/README.md @@ -16,6 +16,8 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/ npm add -D wrangler@latest @opennextjs/cloudflare # or pnpm add -D wrangler@latest @opennextjs/cloudflare + # or + yarn add -D wrangler@latest @opennextjs/cloudflare ``` - add a `wrangler.toml` at the root of your project @@ -40,6 +42,8 @@ You can enable Incremental Static Regeneration ([ISR](https://nextjs.org/docs/ap npx wrangler kv namespace create NEXT_CACHE_WORKERS_KV # or pnpm wrangler kv namespace create NEXT_CACHE_WORKERS_KV + # or + yarn wrangler kv namespace create NEXT_CACHE_WORKERS_KV ``` - Paste the snippet to your `wrangler.toml`: @@ -67,6 +71,8 @@ Run the following commands to preview the production build of your application l npx cloudflare # or pnpm cloudflare + # or + yarn cloudflare ``` - Preview the app in Wrangler @@ -75,6 +81,8 @@ Run the following commands to preview the production build of your application l npx wrangler dev # or pnpm wrangler dev + # or + yarn wrangler dev ``` ## Deploy your app @@ -87,4 +95,6 @@ Deploy your application to production with the following: npx cloudflare && npx wrangler deploy # or pnpm cloudflare && pnpm wrangler deploy + # or + yarn cloudflare && yarn wrangler deploy ``` From c4cc1c85b97e6dff71c8daf8c4c30818088406ba Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Mon, 30 Sep 2024 10:00:06 +0100 Subject: [PATCH 3/3] add bun commands to package readme --- packages/cloudflare/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/cloudflare/README.md b/packages/cloudflare/README.md index eb2cfe86..61c6bb52 100644 --- a/packages/cloudflare/README.md +++ b/packages/cloudflare/README.md @@ -18,6 +18,8 @@ You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/ pnpm add -D wrangler@latest @opennextjs/cloudflare # or yarn add -D wrangler@latest @opennextjs/cloudflare + # or + bun add -D wrangler@latest @opennextjs/cloudflare ``` - add a `wrangler.toml` at the root of your project @@ -44,6 +46,8 @@ You can enable Incremental Static Regeneration ([ISR](https://nextjs.org/docs/ap pnpm wrangler kv namespace create NEXT_CACHE_WORKERS_KV # or yarn wrangler kv namespace create NEXT_CACHE_WORKERS_KV + # or + bun wrangler kv namespace create NEXT_CACHE_WORKERS_KV ``` - Paste the snippet to your `wrangler.toml`: @@ -73,6 +77,8 @@ Run the following commands to preview the production build of your application l pnpm cloudflare # or yarn cloudflare + # or + bun cloudflare ``` - Preview the app in Wrangler @@ -83,6 +89,8 @@ Run the following commands to preview the production build of your application l pnpm wrangler dev # or yarn wrangler dev + # or + bun wrangler dev ``` ## Deploy your app @@ -97,4 +105,6 @@ Deploy your application to production with the following: pnpm cloudflare && pnpm wrangler deploy # or yarn cloudflare && yarn wrangler deploy + # or + bun cloudflare && bun wrangler deploy ```