Commit Graph

11 Commits

Author SHA1 Message Date
Joakim Jäderberg
873183ec2f * move setLang() to a root layout
* fix: findLang only returns acceptable languages
* fix: fallback to use header x-lang if we haven't setLang yet
* fix: languageSchema, allow uppercase

Approved-by: Linus Flood
2025-02-19 09:06:37 +00:00
Linus Flood
7c0f9084b6 Merged in feat/refactor-header-footer-sitewidealert (pull request #1374)
Refactor: removed parallel routes for header, footer and sidewidealert. Langswitcher and sidewidealert now client components

* feat - removed parallel routes and made sidepeek and sitewidealerts as client components

* Langswitcher as client component

* Fixed lang switcher for current header

* Passing lang when fetching siteconfig

* Merge branch 'master' into feat/refactor-header-footer-sitewidealert

* Refactor

* Removed dead code

* Show only languages that has translation

* Refetch sitewidealert every 60 seconds

* Merge branch 'master' into feat/refactor-header-footer-sitewidealert

* Removed sidepeek parallel route from my-stay

* Added missing env.var to env.test

* Removed console.log


Approved-by: Joakim Jäderberg
2025-02-19 08:59:24 +00: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
Linus Flood
a91c8ed928 feat: cms cache 2024-10-14 10:08:26 +02:00
Michael Zetterberg
a33a69fb58 fix: improve auth handling and logging 2024-08-22 14:07:36 +02:00
Christel Westerberg
92829108be bug: fix rewrites to profile routes for all languages 2024-07-16 07:57:11 +02:00
Chuma McPhoy
bfcef5b832 chore: create a utils/languages file 2024-07-04 15:19:17 +02:00
Matilda Landström
c8247bb2e4 refactor: move contentype to header 2024-05-30 16:07:42 +02:00
Michael Zetterberg
6d85bb5887 fix: passing headers 2024-05-20 10:21:22 +02:00
Michael Zetterberg
476e9f7582 fix(auth): make things work 2024-05-20 09:10:20 +02:00
Michael Zetterberg
8772d30b25 feat(my-pages): redirect to overview in middleware 2024-05-19 19:42:47 +02:00