Skip to content

Commit 3e6427a

Browse files
committed
Add RedwoodSDK page to Worker's Framework section.
1 parent 381401a commit 3e6427a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
} from "~/components";
15+
16+
In this guide, you will create a new [RedwoodSDK](https://rwsdk.com/) application and deploy it to Cloudflare Workers.
17+
18+
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.
19+
20+
## 1. Set up a new project
21+
22+
Create a new project by running the following command, replacing `<project-name>` with your desired project name:
23+
24+
<PackageManagers
25+
type="exec"
26+
pkg="degit"
27+
args={"redwoodjs/sdk/starters/standard#main <project-name>"}
28+
/>
29+
30+
Then, change the directory to your project and install dependencies:
31+
32+
```sh
33+
cd <project-name>
34+
```
35+
36+
<PackageManagers type="install" />
37+
38+
## 2. Develop locally
39+
40+
Once your project is set up, run the following command in the project directory to start a local development server.
41+
RedwoodSDK is just a plugin for Vite, so you can use the same dev workflow as any other Vite project:
42+
43+
<PackageManagers type="run" args={"dev"} />
44+
45+
## 3. Deploy your Project
46+
47+
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/).
48+
49+
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.
50+
51+
<PackageManagers type="run" args={"release"} />

0 commit comments

Comments
 (0)