Keep getting "NEXTAUTH_URL: [ 'String must contain at least 1 character(s)' ]"
I'm building a deployment workflow and I keep getting this error. The documentation states that setting this variable is unnecessary when deploying to Vercel, which is what I'm trying to do. Both setting and not setting the variable are things that I have tried.
This is my 'env.mjs' file
I only changed the provider to Google, but there is a slight chance that I destroyed it.
3 Replies
I put this in the config file for now, so that it builds. Honestly, I have no idea what it does and it is probably wrong, but at least my workflow.. "works" for now.
You can just set it to
http://localhost:3000
or whatever port you are using locallyYou can set it to the NEXT_APP