From 3e6427aa75dd8d628e35c4d1dbba5d243700da01 Mon Sep 17 00:00:00 2001 From: Peter Pistorius Date: Tue, 8 Apr 2025 06:43:00 +0200 Subject: [PATCH 1/3] Add RedwoodSDK page to Worker's Framework section. --- .../framework-guides/redwoodsdk.mdx | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx diff --git a/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx b/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx new file mode 100644 index 00000000000000..da35275c876641 --- /dev/null +++ b/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx @@ -0,0 +1,51 @@ +--- +pcx_content_type: how-to +title: RedwoodSDK +head: [] +description: Create an RedwoodSDK application and deploy it to Cloudflare Workers with Workers Assets. +--- + +import { + Badge, + Description, + InlineBadge, + Render, + PackageManagers, +} from "~/components"; + +In this guide, you will create a new [RedwoodSDK](https://rwsdk.com/) application and deploy it to Cloudflare Workers. + +RedwoodSDK is a composable framework for building server-side web apps on Cloudflare. It starts as a Vite plugin that unlocks SSR, React Server Components, Server Functions, and realtime capabilities. + +## 1. Set up a new project + +Create a new project by running the following command, replacing `` with your desired project name: + +"} +/> + +Then, change the directory to your project and install dependencies: + +```sh +cd +``` + + + +## 2. Develop locally + +Once your project is set up, run the following command in the project directory to start a local development server. +RedwoodSDK is just a plugin for Vite, so you can use the same dev workflow as any other Vite project: + + + +## 3. Deploy your Project + +You can deploy your project to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), either from your local machine or from any CI/CD system, including [Cloudflare's own](/workers/ci-cd/builds/). + +The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration accordingly. + + From c22cf9cf1b1255caf1a5d167806f3533facb2ae4 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 12 May 2025 12:20:21 +0100 Subject: [PATCH 2/3] style and format changes --- .../framework-guides/redwoodsdk.mdx | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx b/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx index da35275c876641..e528e8b847a0ab 100644 --- a/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx @@ -11,41 +11,43 @@ import { InlineBadge, Render, PackageManagers, + Steps, } from "~/components"; In this guide, you will create a new [RedwoodSDK](https://rwsdk.com/) application and deploy it to Cloudflare Workers. RedwoodSDK is a composable framework for building server-side web apps on Cloudflare. It starts as a Vite plugin that unlocks SSR, React Server Components, Server Functions, and realtime capabilities. -## 1. Set up a new project +## Deploy a new RedwoodSDK application on Workers -Create a new project by running the following command, replacing `` with your desired project name: + +1. **Create a new project.** -"} -/> + Run the following command, replacing `` with your desired project name: + "} + /> -Then, change the directory to your project and install dependencies: +2. **Change the directory.** + ```sh + cd + ``` -```sh -cd -``` +3. **Install dependencies.** + - +4. **Develop locally.** -## 2. Develop locally + Run the following command in the project directory to start a local development server. RedwoodSDK is just a plugin for Vite, so you can use the same dev workflow as any other Vite project: + -Once your project is set up, run the following command in the project directory to start a local development server. -RedwoodSDK is just a plugin for Vite, so you can use the same dev workflow as any other Vite project: +5. **Deploy your project.** - + You can deploy your project to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), either from your local machine or from any CI/CD system, including [Cloudflare Workers CI/CD](/workers/ci-cd/builds/). -## 3. Deploy your Project + Use the following command to build and deploy. If you're using CI, make sure to update your [deploy command](/workers/ci-cd/builds/configuration/#build-settings) configuration accordingly. + -You can deploy your project to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), either from your local machine or from any CI/CD system, including [Cloudflare's own](/workers/ci-cd/builds/). - -The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration accordingly. - - + \ No newline at end of file From b4e60db1b1f51346ed5dbaf72bddc6fdfcfc2557 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 12 May 2025 17:08:27 +0100 Subject: [PATCH 3/3] Update src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx Co-authored-by: Maddy <130055405+Maddy-Cloudflare@users.noreply.github.com> --- .../docs/workers/frameworks/framework-guides/redwoodsdk.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx b/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx index e528e8b847a0ab..6ff8ec9ab98240 100644 --- a/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx +++ b/src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx @@ -47,7 +47,7 @@ RedwoodSDK is a composable framework for building server-side web apps on Cloudf You can deploy your project to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), either from your local machine or from any CI/CD system, including [Cloudflare Workers CI/CD](/workers/ci-cd/builds/). - Use the following command to build and deploy. If you're using CI, make sure to update your [deploy command](/workers/ci-cd/builds/configuration/#build-settings) configuration accordingly. + Use the following command to build and deploy. If you are using CI, make sure to update your [deploy command](/workers/ci-cd/builds/configuration/#build-settings) configuration accordingly. \ No newline at end of file