From 861db591bd3c08303590eacfb55705a10fb3c191 Mon Sep 17 00:00:00 2001 From: Amy Haywood Dutton Date: Mon, 25 Mar 2024 20:24:17 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20Add=20env=20variable=20for?= =?UTF-8?q?=20deploying=20to=20Vercel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/deploy/vercel.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/docs/deploy/vercel.md b/docs/docs/deploy/vercel.md index 5f4e6e33fe04..6ef66f65c96c 100644 --- a/docs/docs/deploy/vercel.md +++ b/docs/docs/deploy/vercel.md @@ -12,7 +12,8 @@ If you simply want to experience the Vercel deployment process without a databas 1. create a new redwood project: `yarn create redwood-app ./vercel-deploy` 2. after your "vercel-deploy" project installation is complete, init git, commit, and add it as a new repo to GitHub, BitBucket, or GitLab 3. run the command `yarn rw setup deploy vercel` and commit and push changes -4. use the Vercel [Quick Start](https://vercel.com/#get-started) to deploy +4. within the environmental variables section of your project's Vercel dashboard, add `ENABLE_EXPERIMENTAL_COREPACK=1` +5. use the Vercel [Quick Start](https://vercel.com/#get-started) to deploy _If you choose this quick deploy experience, the following steps do not apply._ @@ -88,3 +89,11 @@ By default, API requests in Vercel have a timeout limit of 15 seconds. To extend } } ``` + +## Environmental Variables +Within the Environmental Variables section of your project's Vercel dashboard, add: + +``` +ENABLE_EXPERIMENTAL_COREPACK=1 +``` + From bb92a9a700801ab8ee7faa0b81a7a9b0eb8cd1a9 Mon Sep 17 00:00:00 2001 From: Amy Haywood Dutton Date: Mon, 25 Mar 2024 20:37:02 -0500 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20Added=20changeset=20for=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changesets/10295.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .changesets/10295.md diff --git a/.changesets/10295.md b/.changesets/10295.md new file mode 100644 index 000000000000..24bf843d6c17 --- /dev/null +++ b/.changesets/10295.md @@ -0,0 +1,19 @@ +- 📝 Add env variable for deploying to Vercel (#10295) by @ahaywood + +--- + +Updates the documentation for deploying to Vercel. + +--- + +Fixes #10100 + +When you create a fresh install of Redwood and then try deploying to Vercel, it will error out unless you add the following environmental variable: + +``` +ENABLE_EXPERIMENTAL_COREPACK=1 +``` + +env-variables-within-vercel + +This PR adds documentation for deploying to Vercel.