fix: was unable to fetch hotel subpage data, now uses the same function as when fetching a 'normal' hotel page
* fix: was unable to fetch hotel subpage data, now uses the same function as when fetching a 'normal' hotel page
Approved-by: Linus Flood
* 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
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
First steps towards the SAS partnership
* otp flow now pretends to do the linking
* Update LinkAccountForm header
* Update redirect times
* Clean up comments
* Set maxAge on sas cookies
* make all SAS routes protected
* Merge remote-tracking branch 'refs/remotes/origin/feature/sas-login' into feature/sas-login
* Require auth for sas link flow
* Fix resend otp
* Add error support to OneTimePasswordForm
* Add Sentry to SAS error boundary
* Move SAS_REQUEST_OTP_STATE_STORAGE_COOKIE_NAME
* Add missing translations
* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/sas-login
* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login
* Add TooManyCodesError component
* Refactor GenericError to support new errors
* Add FailedAttemptsError
* remove removed component <VWOScript/>
* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login
* remove local cookie-bot reference
* Fix sas campaign logo scaling
* feature toggle the SAS stuff
* Merge branch 'feature/sas-login' of bitbucket.org:scandic-swap/web into feature/sas-login
* fix: use env vars for SAS endpoints
Approved-by: Linus Flood
feat(SW-1296): added Subpage for hotel pages and its routing
* feat(SW-1296): added Subpage for hotel pages and its routing
Approved-by: Fredrik Thorsson
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.
Just logging an error makes it difficult to relate the error log to code in the
codebase. Error logging a message right before the error itself makes it easier
to search the codebase for that error log.
This is the foundation for the rate selection. Since we don't have UX
and UI ready yet this is on a best effort basis. Things that will be
changed later includes proper API fetching, correct design,
internationalization of text and form handling.