Skip to content

Commit

Permalink
vercel <SpeedInsights/> added
Browse files Browse the repository at this point in the history
  • Loading branch information
LeinahI committed Dec 9, 2023
1 parent b1b355b commit 7f8d31d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { ClerkProvider } from "@clerk/nextjs";
import { Inter } from "next/font/google";
import "../globals.css";
import { SpeedInsights } from "@vercel/speed-insights/next";

export const metadata = {
title: "Chirpy",
Expand All @@ -21,6 +22,7 @@ export default function RootLayout({
<ClerkProvider>
<html lang="en">
<body className={` ${mainFont.className} bg-light-1`}>
<SpeedInsights />
<div className="w-full flex justify-center items-center min-h-screen">
{children}
</div>
Expand Down
3 changes: 2 additions & 1 deletion app/(root)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import LeftSidebar from "@/components/shared/LeftSidebar";
import Bottombar from "@/components/shared/Bottombar";
import { ClerkProvider, currentUser } from "@clerk/nextjs";
import { redirect } from "next/navigation";

import { SpeedInsights } from "@vercel/speed-insights/next";

const mainFont = Inter({ subsets: ["latin"] });

Expand All @@ -29,6 +29,7 @@ export default async function RootLayout({
<ClerkProvider>
<html lang="en">
<body className={`${mainFont.className} custom-scrollbar`}>
<SpeedInsights />
<Topbar />
<main className="flex flex-row">
<LeftSidebar />
Expand Down
13 changes: 10 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@types/react": "18.2.15",
"@types/react-dom": "18.2.7",
"@uploadthing/react": "^5.7.0",
"@vercel/speed-insights": "^1.0.1",
"autoprefixer": "10.4.14",
"class-variance-authority": "^0.6.1",
"clsx": "^1.2.1",
Expand Down

0 comments on commit 7f8d31d

Please sign in to comment.