Skip to content

Commit

Permalink
docs: fix 32 character long generation code snippet (#13372)
Browse files Browse the repository at this point in the history
* Update 90-adapter-vercel.md

* Update documentation/docs/25-build-and-deploy/90-adapter-vercel.md

Co-authored-by: Elliott Johnson <sejohnson@torchcloudconsulting.com>

---------

Co-authored-by: Elliott Johnson <sejohnson@torchcloudconsulting.com>
  • Loading branch information
1 parent 2b7b0d1 commit 01f001b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/docs/25-build-and-deploy/90-adapter-vercel.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ Making a `GET` or `HEAD` request with `x-prerender-revalidate: <token>` will for

Note that the `BYPASS_TOKEN` string must be at least 32 characters long. You could generate one using the JavaScript console like so:

```console
btoa(Math.random().toString()).substring(0,32);
```js
crypto.randomUUID();
```

Set this string as an environment variable on Vercel by logging in and going to your project then Settings > Environment Variables. For "Key" put `BYPASS_TOKEN` and for "value" use the string generated above, then hit "Save".

To get this key known about for local development, you can use the [Vercel CLI](https://vercel.com/docs/cli/env) by running the `vercel env pull` command locally like so:

```console
$ vercel env pull .env.development.local
```sh
vercel env pull .env.development.local
```

### allowQuery
Expand Down

0 comments on commit 01f001b

Please sign in to comment.