feat(SW-266): Replacing static metadata with data from Contentstack on Loyalty pages and Account Pages

Approved-by: Simon.Emanuelsson
This commit is contained in:
Pontus Dreij
2024-08-22 13:49:34 +00:00
14 changed files with 287 additions and 8 deletions

View File

@@ -34,7 +34,6 @@ export default async function MyPages({
<p>{formatMessage({ id: "No content published" })}</p>
)}
</main>
<TrackingSDK pageData={tracking} />
</>
)

View File

@@ -15,14 +15,9 @@ import { getIntl } from "@/i18n"
import ServerIntlProvider from "@/i18n/Provider"
import { getLang, setLang } from "@/i18n/serverContext"
import type { Metadata } from "next"
import type { LangParams, LayoutArgs } from "@/types/params"
export const metadata: Metadata = {
description: "New web",
title: "Scandic Hotels",
}
export { generateMetadata } from "@/utils/generateMetadata"
export default async function RootLayout({
children,
@@ -35,8 +30,8 @@ export default async function RootLayout({
>) {
setLang(params.lang)
preloadUserTracking()
const { defaultLocale, locale, messages } = await getIntl()
return (
<html lang={getLang()}>
<head>