You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx
+24-22Lines changed: 24 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,41 +11,43 @@ import {
11
11
InlineBadge,
12
12
Render,
13
13
PackageManagers,
14
+
Steps,
14
15
} from"~/components";
15
16
16
17
In this guide, you will create a new [RedwoodSDK](https://rwsdk.com/) application and deploy it to Cloudflare Workers.
17
18
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.
19
20
20
-
## 1. Set up a new project
21
+
## Deploy a new RedwoodSDK application on Workers
21
22
22
-
Create a new project by running the following command, replacing `<project-name>` with your desired project name:
Then, change the directory to your project and install dependencies:
33
+
2.**Change the directory.**
34
+
```sh
35
+
cd<project-name>
36
+
```
31
37
32
-
```sh
33
-
cd<project-name>
34
-
```
38
+
3.**Install dependencies.**
39
+
<PackageManagerstype="install" />
35
40
36
-
<PackageManagerstype="install" />
41
+
4.**Develop locally.**
37
42
38
-
## 2. Develop locally
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
+
<PackageManagerstype="run"args={"dev"} />
39
45
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:
46
+
5.**Deploy your project.**
42
47
43
-
<PackageManagerstype="run"args={"dev"} />
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/).
44
49
45
-
## 3. Deploy your Project
50
+
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.
51
+
<PackageManagerstype="run"args={"release"} />
46
52
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.
0 commit comments