File tree Expand file tree Collapse file tree 5 files changed +36
-3
lines changed
Expand file tree Collapse file tree 5 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 2828 run : npx playwright install --with-deps
2929
3030 - name : Run Playwright Tests
31- run : npx playwright test
31+ run : NODE_OPTIONS="--no-experimental-strip-types" npx playwright test
3232
3333 - name : Upload Playwright Traces
3434 if : failure()
Original file line number Diff line number Diff line change 1- import React , { useEffect } from "react" ;
1+ import React from "react" ;
22import { Metadata } from "next" ;
33import { DEFAULT_LANGUAGE_CODE } from "@/features/localization/localization.config" ;
44import { cookies } from "next/headers" ;
Original file line number Diff line number Diff line change @@ -6,14 +6,35 @@ export default function sitemap(): MetadataRoute.Sitemap {
66 {
77 url : BASE_URL ,
88 lastModified : new Date ( ) ,
9+ alternates : {
10+ languages : {
11+ en : `${ BASE_URL } /` ,
12+ ja : `${ BASE_URL } /ja/` ,
13+ "x-default" : `${ BASE_URL } /` ,
14+ } ,
15+ } ,
916 } ,
1017 {
1118 url : `${ BASE_URL } /introduction` ,
1219 lastModified : new Date ( ) ,
20+ alternates : {
21+ languages : {
22+ en : `${ BASE_URL } /introduction` ,
23+ ja : `${ BASE_URL } /ja/introduction` ,
24+ "x-default" : `${ BASE_URL } /introduction` ,
25+ } ,
26+ } ,
1327 } ,
1428 {
1529 url : `${ BASE_URL } /libraries` ,
1630 lastModified : new Date ( ) ,
31+ alternates : {
32+ languages : {
33+ en : `${ BASE_URL } /libraries` ,
34+ ja : `${ BASE_URL } /ja/libraries` ,
35+ "x-default" : `${ BASE_URL } /libraries` ,
36+ } ,
37+ } ,
1738 } ,
1839 ] ;
19- }
40+ }
Original file line number Diff line number Diff line change 1+ import Script from 'next/script' ;
2+
3+ const AdobeAnalyticsScript = ( ) => {
4+ const source = process . env . NEXT_PUBLIC_ADOBE_ANALYTICS_URL ;
5+ return source ? (
6+ < Script type = "text/javascript" src = { source } charSet = "UTF-8" async > </ Script >
7+ ) : null ;
8+ } ;
9+
10+ export default AdobeAnalyticsScript ;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import {
2626import { ThemeDetectorComponent } from "@/features/common/components/theme-detector/theme-detector.component" ;
2727import { ThemeCookieValues } from "@/features/common/values/theme.values" ;
2828import { AbTestingScriptComponent } from "@/features/analytics/components/ab-testing-script/ab-testing-script.component" ;
29+ import AdobeAnalyticsScript from "@/features/analytics/components/adobe-analytics-script.component" ;
2930
3031const GTM_ID = process . env . NEXT_PUBLIC_GTM_ID ;
3132
@@ -105,6 +106,7 @@ export const ShellComponent: React.FC<ShellComponentProps> = ({
105106 < OnetrustScriptComponent
106107 id = { CLIENT_CONFIG . DEVELOPERS_DATA_DOMAIN_ID_ONETRUST }
107108 />
109+ < AdobeAnalyticsScript />
108110 { children }
109111 { consentLevel &&
110112 consentLevel . includes ( COOKIE_LEVELS . NECESSARY . toString ( ) ) &&
You can’t perform that action at this time.
0 commit comments