Skip to content

Commit

Permalink
feat: Analytics e SpeedInsights
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickCReis committed Apr 29, 2024
1 parent ef2883a commit 29029ae
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@trpc/server": "11.0.0-rc.334",
"@ts-react/form": "^1.1.3",
"@vercel/analytics": "^1.2.2",
"@vercel/speed-insights": "^1.0.10",
"clsx": "^2.1.1",
"dayjs": "^1.11.7",
"geist": "^1.3.0",
Expand Down
9 changes: 6 additions & 3 deletions apps/nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import type { Metadata, Viewport } from "next";
import { Analytics } from "@vercel/analytics/next";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";

import { cn } from "@acme/ui";
import { ThemeProvider, ThemeToggle } from "@acme/ui/theme";
import { Toaster } from "@acme/ui/toast";

import { env } from "~/env";
import { TRPCReactProvider } from "~/trpc/react";
import { Header } from "./_components/header";

import "~/app/globals.css";

import { env } from "~/env";
import { Header } from "./_components/header";

export const runtime = "edge";
export const preferredRegion = ["iad1"];

Expand Down Expand Up @@ -67,6 +68,8 @@ export default function RootLayout(props: { children: React.ReactNode }) {
</div>
<Toaster />
</ThemeProvider>
<Analytics />
<SpeedInsights />
</body>
</html>
);
Expand Down
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 29029ae

Please sign in to comment.