Closed IAmLuisJ closed 2 years ago
The NEXT_APP_URL
env variable is mostly used for the slack integration and not for Next-auth https://github.com/planetscale/beam/blob/main/lib/slack.ts#L23 , so I think it will be a good idea to make it optional if the slack integration is not enabled.
I'm not sure if anyone else has run into this, but when I was trying to deploy to Vercel the build kept failing because it said I was missing NEXT_APP_URL, but the NextAuth.JS documentation says this variable isn't required when deploying to Vercel.
I double checked that "Automatically expose System Environment Variables" was turned on as well.
Error: `
I was able to get it working by adding an environment variable for NEXT_APP_URL and a valid full URL.
From looking at the Vercel Documentation I wonder if this was changed to NEXT_PUBLIC_VERCEL_URL
If others are seeing this issue maybe something can be added to the readme like "When deploying to vercel you may have to set the NEXT_APP_URL which is validated as a URL so be sure to include the full URL. For example: https:///www.appName.vercel.app in your Environment Variables."