@openstatus/next-monitoring
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

OpenStatus Real User Monitoring for NextJS

Start monitoring the performance your NextJS application with OpenStatus Real User Monitoring.

Usage

To use OpenStatus Real User Monitoring in your NextJS application, you need to install the package first:

pnpm add @openstatus/next-monitoring

Then, you need to add in your application the OpenStatusProvider component. You can do this in your custom layout.tsx file or in a custom layout component

import { OpenStatusProvider } from "@openstatus/next-monitoring";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className={inter.className}>
        <OpenStatusProvider dsn="YOUR_DSN" />
        {children}
      </body>
    </html>
  );
}

Package Sidebar

Install

npm i @openstatus/next-monitoring

Weekly Downloads

9

Version

0.0.4

License

AGPL-3.0

Unpacked Size

52.1 kB

Total Files

9

Last publish

Collaborators

  • thibaultleouay
  • maximiliankaske