Skip to content

Commit c5070ed

Browse files
ToriLindsaypeterpMaddy-Cloudflare
authored
[Workers] RedwoodSDK framework - reformat (#22348)
* Add RedwoodSDK page to Worker's Framework section. * style and format changes * Update src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx Co-authored-by: Maddy <[email protected]> --------- Co-authored-by: Peter Pistorius <[email protected]> Co-authored-by: Maddy <[email protected]>
1 parent b8fc1d9 commit c5070ed

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
pcx_content_type: how-to
3+
title: RedwoodSDK
4+
head: []
5+
description: Create an RedwoodSDK application and deploy it to Cloudflare Workers with Workers Assets.
6+
---
7+
8+
import {
9+
Badge,
10+
Description,
11+
InlineBadge,
12+
Render,
13+
PackageManagers,
14+
Steps,
15+
} from "~/components";
16+
17+
In this guide, you will create a new [RedwoodSDK](https://rwsdk.com/) application and deploy it to Cloudflare Workers.
18+
19+
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.
20+
21+
## Deploy a new RedwoodSDK application on Workers
22+
23+
<Steps>
24+
1. **Create a new project.**
25+
26+
Run the following command, replacing `<project-name>` with your desired project name:
27+
<PackageManagers
28+
type="exec"
29+
pkg="degit"
30+
args={"redwoodjs/sdk/starters/standard#main <project-name>"}
31+
/>
32+
33+
2. **Change the directory.**
34+
```sh
35+
cd <project-name>
36+
```
37+
38+
3. **Install dependencies.**
39+
<PackageManagers type="install" />
40+
41+
4. **Develop locally.**
42+
43+
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:
44+
<PackageManagers type="run" args={"dev"} />
45+
46+
5. **Deploy your project.**
47+
48+
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/).
49+
50+
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.
51+
<PackageManagers type="run" args={"release"} />
52+
53+
</Steps>

0 commit comments

Comments
 (0)