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