Skip to content

Commit c22cf9c

Browse files
committed
style and format changes
1 parent 3e6427a commit c22cf9c

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,43 @@ import {
1111
InlineBadge,
1212
Render,
1313
PackageManagers,
14+
Steps,
1415
} from "~/components";
1516

1617
In this guide, you will create a new [RedwoodSDK](https://rwsdk.com/) application and deploy it to Cloudflare Workers.
1718

1819
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.
1920

20-
## 1. Set up a new project
21+
## Deploy a new RedwoodSDK application on Workers
2122

22-
Create a new project by running the following command, replacing `<project-name>` with your desired project name:
23+
<Steps>
24+
1. **Create a new project.**
2325

24-
<PackageManagers
25-
type="exec"
26-
pkg="degit"
27-
args={"redwoodjs/sdk/starters/standard#main <project-name>"}
28-
/>
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+
/>
2932

30-
Then, change the directory to your project and install dependencies:
33+
2. **Change the directory.**
34+
```sh
35+
cd <project-name>
36+
```
3137

32-
```sh
33-
cd <project-name>
34-
```
38+
3. **Install dependencies.**
39+
<PackageManagers type="install" />
3540

36-
<PackageManagers type="install" />
41+
4. **Develop locally.**
3742

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+
<PackageManagers type="run" args={"dev"} />
3945

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.**
4247

43-
<PackageManagers type="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/).
4449

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+
<PackageManagers type="run" args={"release"} />
4652

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"} />
53+
</Steps>

0 commit comments

Comments
 (0)