Commit Graph

13 Commits

Author SHA1 Message Date
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
Christel Westerberg 5901cab440 fix: refactor breadcrumbs to take page type variants to better match margins 2025-01-07 11:41:39 +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
Linus Flood 10aa735a2e Refactor 2024-10-14 10:39:53 +02:00
Linus Flood a8f7c62f59 refactor 2024-10-14 10:36:13 +02:00
Linus Flood 697d571ab2 Fixed expiresAt value depending of cache hit/miss 2024-10-14 10:19:29 +02:00
Linus Flood a91c8ed928 feat: cms cache 2024-10-14 10:08:26 +02:00
Simon Emanuelsson af850c90e7 feat(SW-66, SW-348): search functionality and ui 2024-09-24 09:47:31 +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
Christel Westerberg 9b4fde334f fix: trim away trailing slash 2024-07-01 10:24:22 +02:00
Christel Westerberg bac513ec4c fix: add headers correctly 2024-05-28 08:30:20 +02:00
Michael Zetterberg 6d85bb5887 fix: passing headers 2024-05-20 10:21:22 +02:00