Configuration of NEXTAUTH_URL and NEXT_PUBLIC_VIEWER_URL in .env
I have created a subdomain and mapped the server's external IP address to the DNS https://domain.com
In my .env,
NEXTAUTH_URL = https://domain.com
NEXT_PUBLIC_VIEWER_URL = https://domain.com
Currently, both the URLs in env are the same. What should be the NEXT_PUBLIC_VIEWER_URL?
if I keep the NEXT_PUBLIC_VIEWER_URL = https://bot.domain.com the server is not able to make a connection
should I create a new subdomain and map it with NEXT_PUBLIC_VIEWER_URL?
2 Replies
It works! It works!!
I'm literally jumping out of joyyy, thank you soo much!!