Commit Graph

10 Commits

Author SHA1 Message Date
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
a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Chuma McPhoy
bfcef5b832 chore: create a utils/languages file 2024-07-04 15:19:17 +02:00
Simon Emanuelsson
7c4b8401e9 feat(WEB-304): remaning UI from design system primitives 2024-06-13 10:00:16 +02:00
Matilda Landström
0ab35679f8 fix: move logic to middleware 2024-05-31 08:18:37 +02:00
Matilda Landström
9d98a93e3a fix: update middleware matcher to pathname includes 2024-05-31 08:18:37 +02:00
Arvid Norlin
675228e4e9 chore: remove logs 2024-05-24 13:01:40 +02:00
Arvid Norlin
c45380d8e2 debug: add logging 2024-05-24 11:36:00 +02:00
Matilda Landström
e3e4d6c1c8 fix: cleanup logs 2024-05-23 14:05:03 +02:00
Matilda Landström
dec41fa477 chore: add middleware for logout from current web 2024-05-23 14:05:02 +02:00