Skip to content

Commit 567019f

Browse files
committed
update latest changes on main
1 parent cbbc059 commit 567019f

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed

.github/workflows/production.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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()

src/app/[language]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from "react";
1+
import React from "react";
22
import { Metadata } from "next";
33
import { DEFAULT_LANGUAGE_CODE } from "@/features/localization/localization.config";
44
import { cookies } from "next/headers";

src/app/sitemap.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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;

src/features/common/components/shell/shell.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
import { ThemeDetectorComponent } from "@/features/common/components/theme-detector/theme-detector.component";
2727
import { ThemeCookieValues } from "@/features/common/values/theme.values";
2828
import { AbTestingScriptComponent } from "@/features/analytics/components/ab-testing-script/ab-testing-script.component";
29+
import AdobeAnalyticsScript from "@/features/analytics/components/adobe-analytics-script.component";
2930

3031
const 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()) &&

0 commit comments

Comments
 (0)