Sample App

  • Next.js version 13.5.1
  • applicationinsights-react-js version 3.4.1

Getting Started

  • Configure the value of connectionString in instrumentation.next.ts with your own Application Insights Instrumentation Key.
  • Connection Strings
First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

In Azure Application Insights Instance see the metrics being sent to the Application Insights resource.

  • Number of Page Views

    alt text

  • Sample Kusto Query to filter out page views

    alt text

  • Average Duration of Page Views

    alt text

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository.

Deploy on Vercel

You can also deploy Next.js app using the Vercel Platform.

Check out Next.js deployment documentation for more details.