WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit edf4477

Browse files
committed
Use 'npm run' commands in tutorial
1 parent 26bf2ff commit edf4477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ With Vite and the Cloudflare plugin, you can iterate on the client and server pa
276276

277277
#### Build your application
278278

279-
Run `vite build` to build your application.
279+
Run `npm run build` to build your application.
280280

281281
If you inspect the `dist` directory, you will see that it contains two subdirectories: `client` and `cloudflare-vite-tutorial`.
282282
The `cloudflare-vite-tutorial` directory contains your Worker code and the output `wrangler.json` configuration.
283283

284284
#### Preview your application
285285

286-
Run `vite preview` to validate that your application runs as expected.
286+
Run `npm run preview` to validate that your application runs as expected.
287287
This command will run your build output locally in the Workers runtime, closely matching its behaviour in production.
288288

289289
#### Deploy to Cloudflare

0 commit comments

Comments
 (0)