Commit Graph

53 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
Christel Westerberg
44747058d0 fix: loyalty levels fetch in rsc for mobile menu
fix: get loyalty level in rsc

fix: typo
2024-10-08 08:25:44 +02:00
Christel Westerberg
2886084a82 feat: add communication preferences
feat: add generatePreferencesLink

feat: add subscriberId endpoint
2024-10-08 08:25:44 +02:00
Linus Flood
05fc698b63 Transform env to bool 2024-09-19 13:37:22 +02:00
Linus Flood
69359da126 Using feature flag 2024-09-19 13:28:51 +02:00
Erik Tiekstra
730f66d79a feat(SW-325): added mapId as environment variables 2024-09-19 07:33:39 +02:00
Chuma McPhoy
1ff6cd267d feat: update getHotel to use real hotel api endpoint, support for service tokens, type modifications 2024-08-21 10:31:52 +02:00
Fredrik Thorsson
02cd647649 feat: make map key and signature optional 2024-08-13 11:24:06 +02:00
Fredrik Thorsson
e7af67ca73 feat(SW-68): refactor digital signature 2024-08-13 08:52:54 +02:00
Fredrik Thorsson
854247e15e feat(SW-68): add digital signature to request 2024-08-13 08:52:54 +02:00
Hrishikesh Vaipurkar
85f5a524d9 feat: WEB-210 Removed secret from ex env and reverted server.ts 2024-07-10 11:37:28 +02:00
Hrishikesh Vaipurkar
c018dc8ce0 feat: WEB-210 Removed unnecessary env changes and logs 2024-07-10 11:37:28 +02:00
Hrishikesh Vaipurkar
714d0d91f0 feat: WEB-210 Replaced custom env with process.env 2024-07-10 11:37:26 +02:00
Hrishikesh Vaipurkar
46da385950 feat: Web-210 Public Url fix for Netlify branch deploy 2024-07-10 11:37:25 +02:00
Arvid Norlin
2a71a45d3d fix: make connectionString optional 2024-07-01 13:33:28 +02:00
Christel Westerberg
12e66568b0 fix: add adobe sdk script 2024-07-01 11:33:55 +02:00
Arvid Norlin
0657355f27 chore: remove debug configuration 2024-07-01 11:29:13 +02:00
Arvid Norlin
edc2216d83 feat: add instrumentation 2024-07-01 11:29:13 +02:00
Matilda Landström
e65145687d chore: add back language specific routes 2024-05-23 14:05:03 +02:00
Matilda Landström
d521f9fe27 fix: remove code from rebase 2024-05-23 14:05:02 +02:00
Matilda Landström
af1d65f4bb chore: add new endpoint for logout from current web 2024-05-23 14:05:02 +02:00
Matilda Landström
02107784ad chore: add temp env endpoint for seamless logout 2024-05-23 14:05:02 +02:00
Michael Zetterberg
13575376b1 chore(debug): envs in edge functions 2024-05-22 11:50:29 +02:00
Michael Zetterberg
b2c8a2ccaf chore(debug): envs in api functions 2024-05-19 09:21:49 +02:00
Michael Zetterberg
f782ae796e chore(debug): envs in api functions 2024-05-17 15:26:25 +02:00
Michael Zetterberg
62a8374144 chore(debug): envs in api functions 2024-05-17 15:16:51 +02:00
Michael Zetterberg
e9be5a33a9 chore(debug): envs in api functions 2024-05-17 14:17:55 +02:00
Michael Zetterberg
938200128f chore(debug): envs in api functions 2024-05-17 10:57:45 +02:00
Simon Emanuelsson
0c4aa592cc feat: revalidate my pages breadcrumbs on demand 2024-05-06 15:13:41 +02:00
Arvid Norlin
153479ab98 fix: change CMS_ENVIRONMENT allowed value from staging to stage 2024-05-02 12:56:03 +02:00
Michael Zetterberg
99ba0b0663 fix(WEB-132): add debug env var for next-auth 2024-04-26 11:56:50 +02:00
Michael Zetterberg
bcbc829e2e fix(WEB-132): absolute seamless login return urls 2024-04-26 08:26:36 +02:00
Christel Westerberg
b738023a43 feat: force port 3000 to make Next.js abort startup on multiple instances clashing on same port 2024-04-24 08:25:40 +02:00
Michael Zetterberg
e2252c01cf feat: set NEXTAUTH_URL based on DEPLOY_PRIME_URL on Netlify 2024-04-23 14:28:11 +02:00
Simon Emanuelsson
55794034c5 feat(WEB-169): get profile data from API 2024-04-18 13:53:49 +02:00
Simon Emanuelsson
38f764e0ff feat: breadcrumbs for My Pages 2024-04-16 10:09:10 +02:00
Simon Emanuelsson
9396b2c3d5 feat(WEB-170): edit profile view 2024-04-16 09:24:31 +02:00
Arvid Norlin
0a3292a354 chore: make the localhost port in the trpc Provider dynamic to work on ports other than 3000 2024-04-12 15:55:22 +02:00
Michael Zetterberg
7be4766c00 feat(WEB-132): add seamless login flow 2024-04-10 12:48:44 +02:00
Michael Zetterberg
7093a0b2dd feat(WEB-132): add middlewares, support for seamless login and improve lang based routes 2024-04-10 11:23:38 +02:00
Simon Emanuelsson
445e523c9a feat: add redirect_proxy url to handle auth in stage, test 2024-03-27 09:12:14 +01:00
Arvid Norlin
70f9c22410 feat: add login and print user object on my-pages 2024-03-14 11:02:36 +01:00
Christel Westerberg
9973e3921c fix: rename access token variable and change eslint rules in layout 2024-03-08 15:33:15 +01:00
Christel Westerberg
9b25a72025 fix: install design repo with access token 2024-03-08 15:32:17 +01:00
Simon Emanuelsson
b130ce11c6 feat: add cypress 2024-02-29 17:52:29 +01:00
Arvid Norlin
c19f235e5f refactor: read ADOBE_SCRIPTS_SRC from env 2024-02-22 19:10:16 +01:00
Simon Emanuelsson
f6f4e6edb4 feat(WEB-104): add on-demand revalidation for cache 2024-02-22 16:41:39 +01:00
Arvid Norlin
8a8c463452 chore: run prettier --write . 2024-02-19 14:24:30 +01:00
Simon Emanuelsson
0a1df4d45c feat: add t3 env package 2024-02-19 13:49:51 +01:00
Christel Westerberg
2967f13921 fix: cleanup after rebase 2024-02-12 14:04:53 +01:00