fix: reduce the need for multiple SEAMLESS_LOGIN/SEAMLESS_LOGOUT
* fix: reduce the need for multiple SEAMLESS_LOGIN/SEAMLESS_LOGOUT
* fix: reduce the need for multiple SEAMLESS_LOGIN/SEAMLESS_LOGOUT
* fix: defaulted values that are the same in each environment
Approved-by: Christian Andolf
Approved-by: Linus Flood
These are now defined in Netlify UI for dedicated environments (test, stage, production):
AUTH_URL
NEXTAUTH_URL
PUBLIC_URL
Code now falls back to incoming request host. Mainly used for
deployment previews which do not have Akamai in front, meaning
we do not need the above workaround as incoming request host
matches the actual public facing host. When Akamai is in front,
we lose the public facing host in Netlify's routing layer as they
internally use `x-forwarded-for` and we can't claim it for our usage.