Skip to content

Commit ae5119d

Browse files
ci: apply automated fixes
1 parent c29938b commit ae5119d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/start/framework/react/hosting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ Once you've chosen a deployment target, you can follow the deployment guidelines
4040
### Cloudflare Workers
4141

4242
When deploying to Cloudflare Workers, you'll need to complete a few extra steps before your users can start using your app.
43+
4344
1. Install `@cloudflare/vite-plugin`
4445

4546
```bash
4647
pnpm install @cloudflare/vite-plugin -D
4748
```
48-
49+
4950
2. Update `vite.config.ts`
5051

5152
Add the cloudflare plugin to your `vite.config.ts` file.
@@ -65,6 +66,7 @@ export default defineConfig({
6566
],
6667
})
6768
```
69+
6870
3. Install `wrangler`
6971

7072
```bash
@@ -89,17 +91,15 @@ pnpm add wrangler -D
8991
5. Modify package.json script
9092

9193
```json
92-
9394
{
94-
"scripts": {
95+
"scripts": {
9596
"dev": "vite dev",
9697
"build": "vite build && tsc --noEmit",
9798
"start": "node .output/server/index.mjs",
9899
// ============ 👇 add this line ============
99100
"deploy": "wrangler deploy"
100-
},
101+
}
101102
}
102-
103103
```
104104

105105
6. Build and deploy

0 commit comments

Comments
 (0)