Commit Graph

9 Commits

Author SHA1 Message Date
Joakim Jäderberg
691c493522 Merged in fix/seamless-auth (pull request #1255)
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
2025-02-05 10:01:38 +00:00
Linus Flood
baba84c5f6 Adding new .env file with seamless login endpoints, so we can remove them in Netlify 2024-12-20 15:00:27 +01:00
Michael Zetterberg
4a846540c3 feat: improve handling of deployment env vars
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.
2024-10-15 17:03:36 +02:00
Michael Zetterberg
13575376b1 chore(debug): envs in edge functions 2024-05-22 11:50:29 +02:00
Michael Zetterberg
068f19edb7 fix(auth): public url 2024-05-19 17:34:07 +02:00
Michael Zetterberg
89cc410b1d feat(env): handle dynamic env 2024-05-19 11:00:05 +02:00
Michael Zetterberg
b2c8a2ccaf chore(debug): envs in api functions 2024-05-19 09:21:49 +02:00
Michael Zetterberg
62a8374144 chore(debug): envs in api functions 2024-05-17 15:16:51 +02:00
Michael Zetterberg
afb27fc173 chore(debug): envs in api functions 2024-05-17 11:11:36 +02:00