-
Update connection string in
server.js:appInsights.setup("<YOUR_CONNECTION_STRING>").start();
-
Run following command:
npm install npm run dev -
Make some requests by going to
localhost:3000/aandlocalhost:3000/b. Then go to Azure portal - your Application Insights resource page to review data.
- Setup Next.js: https://nextjs.org/docs/getting-started#setup
- Custom server example: https://nextjs.org/docs/advanced-features/custom-server
- Online sample: https://stackblitz.com/edit/github-ycxznf