Skip to content

Commit 8ed9f3c

Browse files
Add preview script to Cloudflare template (#97)
1 parent 507ad74 commit 8ed9f3c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cloudflare/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ npm run dev
3232

3333
Your application will be available at `http://localhost:5173`.
3434

35+
## Previewing the Production Build
36+
37+
Preview the production build locally:
38+
39+
```bash
40+
npm run preview
41+
```
42+
3543
## Building for Production
3644

3745
Create a production build:

cloudflare/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"scripts": {
55
"build": "react-router build",
66
"dev": "react-router dev",
7+
"preview": "vite preview",
78
"start": "wrangler dev",
89
"deploy": "npm run build && wrangler deploy",
910
"typecheck": "wrangler types && react-router typegen && tsc -b"

0 commit comments

Comments
 (0)