diff --git a/src/components/WorkerStarter.astro b/src/components/WorkerStarter.astro index 6d752dcd4f2dafb..ebfe960c5b2438d 100644 --- a/src/components/WorkerStarter.astro +++ b/src/components/WorkerStarter.astro @@ -17,6 +17,6 @@ const link = `https://github.com/${repo}`;

{description}

diff --git a/src/content/docs/pages/framework-guides/deploy-a-docusaurus-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-docusaurus-site.mdx index 6774b0aee433867..4ebebb47e4849ad 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-docusaurus-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-docusaurus-site.mdx @@ -15,8 +15,8 @@ To use `create-cloudflare` to create a new Docusaurus project, run the following `create-cloudflare` will install additional dependencies, including the [Wrangler](/workers/wrangler/install-and-update/#check-your-wrangler-version) CLI and any necessary adapters, and ask you setup questions. diff --git a/src/content/docs/pages/framework-guides/deploy-a-nuxt-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-nuxt-site.mdx index af8f8f1573b5958..3e9ce38e3b97ac5 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-nuxt-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-nuxt-site.mdx @@ -34,8 +34,8 @@ The [`create-cloudflare` CLI (C3)](/pages/get-started/c3/) will configure your N C3 will ask you a series of setup questions and create a new project with [`nuxi` (the official Nuxt CLI)](https://github.com/nuxt/cli). C3 will also install the necessary adapters along with the [Wrangler CLI](/workers/wrangler/install-and-update/#check-your-wrangler-version). diff --git a/src/content/docs/pages/framework-guides/deploy-a-qwik-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-qwik-site.mdx index 6d3b7f766a74a20..7a908ee5b17a5c7 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-qwik-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-qwik-site.mdx @@ -17,8 +17,8 @@ To use `create-cloudflare` to create a new Qwik project, run the following comma `create-cloudflare` will install additional dependencies, including the [Wrangler CLI](/workers/wrangler/install-and-update/#check-your-wrangler-version) and any necessary adapters, and ask you setup questions. diff --git a/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx index fcbfacf1b76b974..ae987d955a6f2bd 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-react-site.mdx @@ -17,8 +17,8 @@ To use `create-cloudflare` to create a new React project, run the following comm `create-cloudflare` will install dependencies, including the [Wrangler](/workers/wrangler/install-and-update/#check-your-wrangler-version) CLI and the Cloudflare Pages adapter, and ask you setup questions. diff --git a/src/content/docs/pages/framework-guides/deploy-a-remix-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-remix-site.mdx index 6b6077ad24b61d6..1442cdfad7a44ed 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-remix-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-remix-site.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Remix project, run the following comm `create-cloudflare` will install additional dependencies, including the [Wrangler](/workers/wrangler/install-and-update/#check-your-wrangler-version) CLI and any necessary adapters, and ask you setup questions. diff --git a/src/content/docs/pages/framework-guides/deploy-a-svelte-kit-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-svelte-kit-site.mdx index 7c6893fcf2919ec..6582a74131780c6 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-svelte-kit-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-svelte-kit-site.mdx @@ -18,8 +18,8 @@ To use `create-cloudflare` to create a new Svelte project, run the following com SvelteKit will prompt you for customization choices. For the template option, choose one of the application/project options. The remaining answers will not affect the rest of this guide. Choose the options that suit your project. diff --git a/src/content/docs/pages/framework-guides/deploy-a-vue-site.mdx b/src/content/docs/pages/framework-guides/deploy-a-vue-site.mdx index 261df3600e6ad77..5f87abcd636e3b0 100644 --- a/src/content/docs/pages/framework-guides/deploy-a-vue-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-a-vue-site.mdx @@ -17,8 +17,8 @@ To use `create-cloudflare` to create a new Vue project, run the following comman diff --git a/src/content/docs/pages/framework-guides/deploy-an-analog-site.mdx b/src/content/docs/pages/framework-guides/deploy-an-analog-site.mdx index 196b053f912114d..b2c8b567582d53c 100644 --- a/src/content/docs/pages/framework-guides/deploy-an-analog-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-an-analog-site.mdx @@ -23,8 +23,8 @@ The easiest way to create a new Analog project and deploy to Cloudflare Pages is C3 will walk you through the setup process and create a new project using `create-analog`, the official Analog creation tool. It will also install the necessary adapters along with the [Wrangler CLI](/workers/wrangler/install-and-update/#check-your-wrangler-version). diff --git a/src/content/docs/pages/framework-guides/deploy-an-angular-site.mdx b/src/content/docs/pages/framework-guides/deploy-an-angular-site.mdx index 4295ee35c1ff290..eddc51fc2644afa 100644 --- a/src/content/docs/pages/framework-guides/deploy-an-angular-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-an-angular-site.mdx @@ -17,8 +17,8 @@ To use `create-cloudflare` to create a new Angular project, run the following co `create-cloudflare` will install dependencies, including the [Wrangler](/workers/wrangler/install-and-update/#check-your-wrangler-version) CLI and the Cloudflare Pages adapter, and ask you setup questions. diff --git a/src/content/docs/pages/framework-guides/deploy-an-astro-site.mdx b/src/content/docs/pages/framework-guides/deploy-an-astro-site.mdx index 76346984c2e4c88..7b2c50cad5e534c 100644 --- a/src/content/docs/pages/framework-guides/deploy-an-astro-site.mdx +++ b/src/content/docs/pages/framework-guides/deploy-an-astro-site.mdx @@ -30,8 +30,8 @@ To use `create-cloudflare` to create a new Astro project, run the following comm Astro will ask: diff --git a/src/content/docs/pages/framework-guides/nextjs/ssr/get-started.mdx b/src/content/docs/pages/framework-guides/nextjs/ssr/get-started.mdx index 5c1ad9445d0558d..f5e6166aee74c6b 100644 --- a/src/content/docs/pages/framework-guides/nextjs/ssr/get-started.mdx +++ b/src/content/docs/pages/framework-guides/nextjs/ssr/get-started.mdx @@ -25,8 +25,8 @@ To create a new Next.js app, pre-configured to run on Cloudflare, run: For more guidance on developing your app, refer to [Bindings](/pages/framework-guides/nextjs/ssr/bindings/) or the [Next.js documentation](https://nextjs.org). diff --git a/src/content/docs/workers-ai/guides/tutorials/build-a-voice-notes-app-with-auto-transcription.mdx b/src/content/docs/workers-ai/guides/tutorials/build-a-voice-notes-app-with-auto-transcription.mdx index bdd1f74b4c042e9..d4c5ab857a991cb 100644 --- a/src/content/docs/workers-ai/guides/tutorials/build-a-voice-notes-app-with-auto-transcription.mdx +++ b/src/content/docs/workers-ai/guides/tutorials/build-a-voice-notes-app-with-auto-transcription.mdx @@ -41,7 +41,7 @@ To continue, you will need: Create a new Worker project using the `c3` CLI with the `nuxt` framework preset. - + ### Install additional dependencies @@ -156,29 +156,7 @@ Before uploading the audio recordings to `R2`, you need to create a bucket first Create an `R2` bucket. - - - -```sh -npx wrangler r2 bucket create -``` - - - - -```sh -yarn dlx wrangler r2 bucket create -``` - - - - -```sh -pnpm dlx wrangler r2 bucket create -``` - - - + Add the storage binding to your Wrangler file. @@ -229,29 +207,7 @@ Before creating the endpoint, you will need to perform steps similar to those fo Create a `D1` database. - - - -```sh -npx wrangler d1 create -``` - - - - -```sh -yarn dlx wrangler d1 create -``` - - - - -```sh -pnpm dlx wrangler d1 create -``` - - - + Add the D1 bindings to the Wrangler file. You can get the `DB_ID` from the output of the `d1 create` command. @@ -266,29 +222,7 @@ As before, rerun the `cf-typegen` command to generate the types. Next, create a DB migration. - - - -```sh -npx wrangler d1 migrations create "create notes table" -``` - - - - -```sh -yarn dlx wrangler d1 migrations create "create notes table" -``` - - - - -```sh -pnpm dlx wrangler d1 migrations create "create notes table" -``` - - - + "create notes table"`} /> This will create a new `migrations` folder in the project's root directory, and add an empty `0001_create_notes_table.sql` file to it. Replace the contents of this file with the code below. @@ -304,29 +238,7 @@ CREATE TABLE IF NOT EXISTS notes ( And then apply this migration to create the `notes` table. - - - -```sh -npx wrangler d1 migrations apply -``` - - - - -```sh -yarn dlx wrangler d1 migrations apply -``` - - - - -```sh -pnpm dlx wrangler d1 migrations apply -``` - - - + :::note The above command will create the notes table locally. To apply the migration on your remote production database, use the `--remote` flag. diff --git a/src/content/docs/workers/frameworks/framework-guides/angular.mdx b/src/content/docs/workers/frameworks/framework-guides/angular.mdx index 460523fe3a88a40..14dca8d2fcb607c 100644 --- a/src/content/docs/workers/frameworks/framework-guides/angular.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/angular.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Angular project with Workers Assets, After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/astro.mdx b/src/content/docs/workers/frameworks/framework-guides/astro.mdx index febef3da6fcc1b3..3ec503661109208 100644 --- a/src/content/docs/workers/frameworks/framework-guides/astro.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/astro.mdx @@ -22,8 +22,8 @@ import { --- @@ -47,7 +47,7 @@ Astro is also framework-agnostic, and supports every major UI framework, includi
diff --git a/src/content/docs/workers/frameworks/framework-guides/docusaurus.mdx b/src/content/docs/workers/frameworks/framework-guides/docusaurus.mdx index 53a5875a5a05779..699c9679f41d4da 100644 --- a/src/content/docs/workers/frameworks/framework-guides/docusaurus.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/docusaurus.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Docusaurus project with Workers Asset After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/gatsby.mdx b/src/content/docs/workers/frameworks/framework-guides/gatsby.mdx index faa10fd1d3220b3..37d1a6d19126282 100644 --- a/src/content/docs/workers/frameworks/framework-guides/gatsby.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/gatsby.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Gatsby project with Workers Assets, r After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/hono.mdx b/src/content/docs/workers/frameworks/framework-guides/hono.mdx index b4f38ede4725cba..bc7a52b91543198 100644 --- a/src/content/docs/workers/frameworks/framework-guides/hono.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/hono.mdx @@ -20,8 +20,8 @@ import { --- @@ -41,8 +41,8 @@ With Workers Assets, you can easily combine a Hono API running on Workers with a
Below is a simplified file tree of the project. diff --git a/src/content/docs/workers/frameworks/framework-guides/nextjs.mdx b/src/content/docs/workers/frameworks/framework-guides/nextjs.mdx index 8226e79ba7727f6..9deec69b7cc237c 100644 --- a/src/content/docs/workers/frameworks/framework-guides/nextjs.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/nextjs.mdx @@ -24,8 +24,8 @@ The OpenNext adapter is in currently in beta. This is a simple getting started guide. For detailed documentation on how the to use the Cloudflare OpenNext adapter, visit the [OpenNext website](https://opennext.js.org/cloudflare). @@ -46,8 +46,8 @@ You can deploy your Next.js app to Cloudflare Workers using the OpenNext adaptor
diff --git a/src/content/docs/workers/frameworks/framework-guides/nuxt.mdx b/src/content/docs/workers/frameworks/framework-guides/nuxt.mdx index 59f02bf70198d92..8d3f2588b7475b2 100644 --- a/src/content/docs/workers/frameworks/framework-guides/nuxt.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/nuxt.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Nuxt project with Workers Assets, run After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/qwik.mdx b/src/content/docs/workers/frameworks/framework-guides/qwik.mdx index d5ae65c329eda00..a7fa96f3ba6bce3 100644 --- a/src/content/docs/workers/frameworks/framework-guides/qwik.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/qwik.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Qwik project with Workers Assets, run After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/react-router.mdx b/src/content/docs/workers/frameworks/framework-guides/react-router.mdx index d81a5551867d3c9..ed54fb56d583425 100644 --- a/src/content/docs/workers/frameworks/framework-guides/react-router.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/react-router.mdx @@ -16,8 +16,8 @@ import { **Or just deploy**: Create a full-stack app using React Router v7, with CI/CD and previews all set up for you. @@ -36,8 +36,8 @@ It combines with the [Cloudflare Vite plugin](/workers/vite-plugin/) to provide
Below is a simplified file tree of the project. diff --git a/src/content/docs/workers/frameworks/framework-guides/react.mdx b/src/content/docs/workers/frameworks/framework-guides/react.mdx index 2ab746999629b1b..0818f9da2d0e13f 100644 --- a/src/content/docs/workers/frameworks/framework-guides/react.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/react.mdx @@ -20,8 +20,8 @@ import { --- @@ -40,8 +40,8 @@ import {
Below is a simplified file tree of the project. diff --git a/src/content/docs/workers/frameworks/framework-guides/solid.mdx b/src/content/docs/workers/frameworks/framework-guides/solid.mdx index 90c4e04d557b090..68250af12f19d74 100644 --- a/src/content/docs/workers/frameworks/framework-guides/solid.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/solid.mdx @@ -29,8 +29,8 @@ To use `create-cloudflare` to create a new Solid project with Workers Assets, ru After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/svelte.mdx b/src/content/docs/workers/frameworks/framework-guides/svelte.mdx index 22115c89c7949e4..60d442b13ff1135 100644 --- a/src/content/docs/workers/frameworks/framework-guides/svelte.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/svelte.mdx @@ -23,8 +23,8 @@ To use `create-cloudflare` to create a new Svelte project with Workers Assets, r After setting up your project, change your directory by running the following command: diff --git a/src/content/docs/workers/frameworks/framework-guides/vue.mdx b/src/content/docs/workers/frameworks/framework-guides/vue.mdx index bed7565012e03e0..30ff09bf17b1a3a 100644 --- a/src/content/docs/workers/frameworks/framework-guides/vue.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/vue.mdx @@ -26,8 +26,8 @@ To use `create-cloudflare` to create a new Vue project with Workers Assets, run
diff --git a/src/content/docs/workers/tutorials/live-cursors-with-nextjs-rpc-do/index.mdx b/src/content/docs/workers/tutorials/live-cursors-with-nextjs-rpc-do/index.mdx index b899f644fd22593..5bd2399608d8224 100644 --- a/src/content/docs/workers/tutorials/live-cursors-with-nextjs-rpc-do/index.mdx +++ b/src/content/docs/workers/tutorials/live-cursors-with-nextjs-rpc-do/index.mdx @@ -41,7 +41,7 @@ The application works like this: