From 7898b4b2c3bfed4d89542468079c38b6769f65dc Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Fri, 24 Jan 2025 14:28:49 +0800 Subject: [PATCH 1/2] Update 90-adapter-vercel.md --- .../docs/25-build-and-deploy/90-adapter-vercel.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/docs/25-build-and-deploy/90-adapter-vercel.md b/documentation/docs/25-build-and-deploy/90-adapter-vercel.md index c3b6637571b5..84a36c75ec6d 100644 --- a/documentation/docs/25-build-and-deploy/90-adapter-vercel.md +++ b/documentation/docs/25-build-and-deploy/90-adapter-vercel.md @@ -124,16 +124,16 @@ Making a `GET` or `HEAD` request with `x-prerender-revalidate: ` 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 +btoa(Math.random().toString() + Math.random().toString()).substring(0,32); ``` 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 From 54ac9b4542027372dbb34614f18f211b609bee93 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Fri, 24 Jan 2025 15:03:44 +0800 Subject: [PATCH 2/2] Update documentation/docs/25-build-and-deploy/90-adapter-vercel.md Co-authored-by: Elliott Johnson --- documentation/docs/25-build-and-deploy/90-adapter-vercel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/25-build-and-deploy/90-adapter-vercel.md b/documentation/docs/25-build-and-deploy/90-adapter-vercel.md index 84a36c75ec6d..b06fb3393476 100644 --- a/documentation/docs/25-build-and-deploy/90-adapter-vercel.md +++ b/documentation/docs/25-build-and-deploy/90-adapter-vercel.md @@ -125,7 +125,7 @@ Making a `GET` or `HEAD` request with `x-prerender-revalidate: ` 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: ```js -btoa(Math.random().toString() + Math.random().toString()).substring(0,32); +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".