-
Install the Atatus Node.js agent.
-
You need to add
NODE_OPTIONS='-r atatus-nodejs/start-next.js'to enable Atatus auto instrumentation for the Next.js backend. If you start your Next.js app usingpackage.json, you can update yourdevandstartnpm scripts as follows:If you use a different process manager (e.g. PM2), setNODE_OPTIONSaccordingly: -
Set the license key and app name using environment variables:
- Restart your Next.js server. Restart the server and send a few requests. Your application metrics will appear in the Atatus dashboard within minutes.
Other Installations
Monitor your Next.js apps in Atatus
Effortlessly track and analyze the performance of your Next.js apps with Atatus
Atatus supports monitoring Next.js application versions 16, and 17.