Skip to content

Commit

Permalink
feat: ✨ speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
gracefullight committed Mar 24, 2024
1 parent e425adf commit 5e87c9f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@trpc/server": "next",
"@vercel/analytics": "^1.2.2",
"@vercel/otel": "^1.6.2",
"@vercel/speed-insights": "^1.0.10",
"ahooks": "^3.7.10",
"apexcharts": "^3.48.0",
"class-variance-authority": "^0.7.0",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Noto_Sans_KR } from "next/font/google";
import { cookies } from "next/headers";
import type { ReactNode } from "react";

import { SpeedInsights } from "@vercel/speed-insights/next";
import type { Metadata, Viewport } from "next";
import { TRPCReactProvider } from "~/trpc/react";

Expand Down Expand Up @@ -79,6 +80,7 @@ export default function RootLayout({ children }: { children: ReactNode }) {
{children}
</TRPCReactProvider>
<Analytics />
<SpeedInsights />
</body>
</html>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { registerOTel } from "@vercel/otel";

export function register() {
registerOTel("doss");
registerOTel({ serviceName: "doss" });
}
36 changes: 33 additions & 3 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 5e87c9f

Please sign in to comment.