Does not work on Vercel Previews yet. There is a workaround to that, however, that wouldn't be included in this PR since it is broken for some reason due to the NEXTAUTH_URL environment variable. In the future, remove NEXTAUTH_URL from Preview deployments and let env.js set NEXTAUTH_URL to VERCEL_URL as a fallback.
To review this Pull Request, set up the branch locally since Vercel preview is not working yet.
Note: Update your .env to have a GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
Description
NextAuth
authentication to the app.NEXTAUTH_URL
environment variable. In the future, removeNEXTAUTH_URL
from Preview deployments and letenv.js
setNEXTAUTH_URL
toVERCEL_URL
as a fallback.Note: Update your
.env
to have aGOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
.