If you do this, it will setup a .env.local and .env.development file.
In these files, a property is set, VERCEL="1"
If VERCEL="1" in env.development, and you run locally, then it will automatically upgrade the connection of whatever URL is set in NEXTAUTH_URL.
So, if you have NEXTAUTH_URL="http://app.localhost:3000", then when you goto http://app.localhost:3000/login, and click the login button, it will automatically upgrade http://app.localhost:3000 to https://app.localhost:3000, which results in an https error.
The solution was to set VERCEL="" in .env.development. Then I was able to progress with the repo.
Hi, cool project.
An https error occurs when logging in if one follows the guide. Here is the context and solution:
In step 2 of https://vercel.com/guides/nextjs-multi-tenant-application, it says you can pull the env vars with the Vercel CLI by running
vc env pull.
If you do this, it will setup a .env.local and .env.development file.
In these files, a property is set,
VERCEL="1"
If
VERCEL="1"
in env.development, and you run locally, then it will automatically upgrade the connection of whatever URL is set inNEXTAUTH_URL
.So, if you have
NEXTAUTH_URL="http://app.localhost:3000"
, then when you gotohttp://app.localhost:3000/login
, and click the login button, it will automatically upgradehttp://app.localhost:3000
tohttps://app.localhost:3000
, which results in an https error.The solution was to set
VERCEL=""
in.env.development
. Then I was able to progress with the repo.Thank you