Next.js · Middle · Question 61 of 75
What is instrumentation-client.ts for?
- ✓Correct answer: Running client-side monitoring or analytics setup before the app becomes interactive
- 2Registering OpenTelemetry on the server
- 3Configuring the client router's cache
Explanation
Put it in the project root (or src). It needs no exports - the code simply runs early in the browser, e.g. to init error tracking.