fix: replace script tags with next/script in layout
This commit is contained in:
@@ -2,6 +2,7 @@ import type { Metadata } from "next";
|
|||||||
import { Bodoni_Moda } from "next/font/google";
|
import { Bodoni_Moda } from "next/font/google";
|
||||||
import "../globals.css";
|
import "../globals.css";
|
||||||
import { prisma } from "@/lib/db";
|
import { prisma } from "@/lib/db";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
const bodoni = Bodoni_Moda({
|
const bodoni = Bodoni_Moda({
|
||||||
variable: "--font-bodoni",
|
variable: "--font-bodoni",
|
||||||
@@ -148,8 +149,6 @@ export default async function RootLayout({
|
|||||||
type="application/ld+json"
|
type="application/ld+json"
|
||||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||||
/>
|
/>
|
||||||
{/* VPS Panel Analytics */}
|
|
||||||
<script defer src="https://panel.ayris.tech/api/analytics/script" data-domain="moybeachakyaka.com"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body className="antialiased font-sans">
|
<body className="antialiased font-sans">
|
||||||
{children}
|
{children}
|
||||||
@@ -160,7 +159,10 @@ export default async function RootLayout({
|
|||||||
data-neighborhood=""
|
data-neighborhood=""
|
||||||
style={{ display: 'none' }}
|
style={{ display: 'none' }}
|
||||||
/>
|
/>
|
||||||
<script src="https://marmarislocal.com/widget.js" async />
|
{/* VPS Panel Analytics */}
|
||||||
|
<Script src="https://panel.ayris.tech/api/analytics/script" data-domain="moybeachakyaka.com" strategy="afterInteractive" />
|
||||||
|
{/* Marmaris Widget */}
|
||||||
|
<Script src="https://marmarislocal.com/widget.js" strategy="lazyOnload" />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Reference in New Issue
Block a user