Skip to content

Commit ed21c4d

Browse files
authored
Secret bindings note - replaced Pages content with partial (#19761)
* Secret bindings note - replaced Pages content with partial * Update src/content/docs/pages/functions/bindings.mdx
1 parent 097043e commit ed21c4d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/content/docs/pages/functions/bindings.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,5 @@ To add secrets to your Pages project:
836836

837837
You use secrets the same way as environment variables. When setting secrets with Wrangler or in the Cloudflare dashboard, it needs to be done before a deployment that uses those secrets. For more guidance, refer to [Environment variables](#environment-variables).
838838

839-
### Interact with your secrets locally
840-
841-
When developing locally, add secrets by creating a `.dev.vars` file in the root directory of your Pages project. Then add the following code snippet to `.dev.vars`:
842-
843-
```
844-
SECRET_NAME=<SECRET_VALUE>
845-
```
839+
### Local development with secrets
840+
<Render file="secrets-in-dev" product="workers" />

0 commit comments

Comments
 (0)