docs(cloudflare): fix code snippet in enabling preview (#7591)

This commit is contained in:
Yusuf 2023-07-07 15:28:30 +07:00 committed by GitHub
parent f224078a65
commit 6bf20b62ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ export default defineConfig({
In order for preview to work you must install `wrangler`
```sh
$ pnpm install wrangler --save-dev
pnpm install wrangler --save-dev
```
It's then possible to update the preview script in your `package.json` to `"preview": "wrangler pages dev ./dist"`. This will allow you to run your entire application locally with [Wrangler](https://github.com/cloudflare/wrangler2), which supports secrets, environment variables, KV namespaces, Durable Objects and [all other supported Cloudflare bindings](https://developers.cloudflare.com/pages/platform/functions/#adding-bindings).