Skip to content

Commit 7670a34

Browse files
authored
chore(): add missing scripts to layout (#7493)
1 parent 83835f2 commit 7670a34

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

apps/docs/src/app/layout.tsx

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,48 @@
1-
import { Provider } from "@/components/provider";
2-
import { getBaseUrl } from "@/lib/urls";
3-
import "./global.css";
4-
import { Inter, Barlow } from "next/font/google";
5-
import type { Metadata } from "next";
6-
import type { ReactNode } from "react";
1+
import { Provider } from '@/components/provider';
2+
import { getBaseUrl } from '@/lib/urls';
3+
import './global.css';
4+
import { Inter, Barlow } from 'next/font/google';
5+
import type { Metadata } from 'next';
6+
import type { ReactNode } from 'react';
7+
import Script from 'next/script';
78

89
const inter = Inter({
9-
subsets: ["latin"],
10-
variable: "--font-inter",
10+
subsets: ['latin'],
11+
variable: '--font-inter',
1112
});
1213

1314
const barlow = Barlow({
14-
subsets: ["latin"],
15-
weight: ["400", "500", "600", "700"],
16-
variable: "--font-barlow",
15+
subsets: ['latin'],
16+
weight: ['400', '500', '600', '700'],
17+
variable: '--font-barlow',
1718
});
1819

1920
export const metadata: Metadata = {
2021
metadataBase: new URL(getBaseUrl()),
21-
title: "Prisma Documentation",
22+
title: 'Prisma Documentation',
2223
description:
23-
"Documentation for Prisma ORM, Prisma Postgres, Prisma Accelerate, and the Prisma ecosystem. Build type-safe database applications with ease.",
24+
'Documentation for Prisma ORM, Prisma Postgres, Prisma Accelerate, and the Prisma ecosystem. Build type-safe database applications with ease.',
2425
};
2526

2627
export default function Layout({ children }: { children: ReactNode }) {
2728
return (
28-
<html lang="en" className={`${inter.variable} ${barlow.variable}`} suppressHydrationWarning>
29+
<html
30+
lang="en"
31+
className={`${inter.variable} ${barlow.variable}`}
32+
suppressHydrationWarning
33+
>
2934
<body className="flex flex-col min-h-screen">
3035
<Provider>{children}</Provider>
36+
<Script
37+
async
38+
src="https://cdn.tolt.io/tolt.js"
39+
data-tolt="fda67739-7ed0-42d2-b716-6da0edbec191"
40+
/>
41+
<Script
42+
async
43+
src="https://cdn-cookieyes.com/client_data/96980f76df67ad5235fc3f0d/script.js"
44+
id="cookieyes"
45+
/>
3146
</body>
3247
</html>
3348
);

0 commit comments

Comments
 (0)