chore: fix analytics domain and formatting in layout
This commit is contained in:
@@ -31,7 +31,7 @@ const ibmPlexMono = IBM_Plex_Mono({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export function generateStaticParams() {
|
export function generateStaticParams() {
|
||||||
return routing.locales.map((locale) => ({locale}));
|
return routing.locales.map((locale) => ({ locale }));
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function generateMetadata({
|
export async function generateMetadata({
|
||||||
@@ -87,11 +87,11 @@ export default async function RootLayout({
|
|||||||
params: Promise<{ locale: string }>;
|
params: Promise<{ locale: string }>;
|
||||||
}>) {
|
}>) {
|
||||||
const { locale } = await params;
|
const { locale } = await params;
|
||||||
|
|
||||||
if (!routing.locales.includes(locale as any)) {
|
if (!routing.locales.includes(locale as any)) {
|
||||||
notFound();
|
notFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
setRequestLocale(locale);
|
setRequestLocale(locale);
|
||||||
const messages = await getMessages();
|
const messages = await getMessages();
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ export default async function RootLayout({
|
|||||||
{/* VPS Panel Analytics */}
|
{/* VPS Panel Analytics */}
|
||||||
<Script
|
<Script
|
||||||
src="https://panel.ayris.tech/api/analytics/script"
|
src="https://panel.ayris.tech/api/analytics/script"
|
||||||
data-domain="https://marmarislocal.com"
|
data-domain="marmarislocal.com"
|
||||||
strategy="afterInteractive"
|
strategy="afterInteractive"
|
||||||
/>
|
/>
|
||||||
{/* Google Analytics GA4 */}
|
{/* Google Analytics GA4 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user