Next.js · Middle · Question 61 of 75

What is instrumentation-client.ts for?

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.

Further reading

Problem with a question

Next.js · Middle · question 61

Test yourself

Take the Next.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz