-
Notifications
You must be signed in to change notification settings - Fork 10k
[Workers] RedwoodSDK framework - reformat #22348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
src/content/docs/workers/frameworks/framework-guides/redwoodsdk.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| --- | ||
| 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, | ||
| 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. | ||
|
|
||
| ## Deploy a new RedwoodSDK application on Workers | ||
|
|
||
| <Steps> | ||
| 1. **Create a new project.** | ||
|
|
||
| Run the following command, replacing `<project-name>` with your desired project name: | ||
| <PackageManagers | ||
| type="exec" | ||
| pkg="degit" | ||
| args={"redwoodjs/sdk/starters/standard#main <project-name>"} | ||
| /> | ||
|
|
||
| 2. **Change the directory.** | ||
| ```sh | ||
| cd <project-name> | ||
| ``` | ||
|
|
||
| 3. **Install dependencies.** | ||
| <PackageManagers type="install" /> | ||
|
|
||
| 4. **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: | ||
| <PackageManagers type="run" args={"dev"} /> | ||
|
|
||
| 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/). | ||
|
|
||
| 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. | ||
| <PackageManagers type="run" args={"release"} /> | ||
|
|
||
| </Steps> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.