Guides
Next.js
Connect your Next.js backend to Chrome DevTools using Subtrace
You can connect your Next.js backend to Chrome DevTools with just one command. With Subtrace, you can inspect the status, headers, payload, and latency of all API requests.
For this guide, we’ll use a minimal Next.js app as an example. The app has one page (index.js
) and one API handler (app/api/foo/route.js
):
To get started, download the latest version of Subtrace using the following command:
Build and start your server using Subtrace:
Open the subt.link
URL in your browser to get to the Subtrace dashboard. Go to localhost:3000
and make some requests to the server to see them show up in realtime on the Subtrace dashboard!
You can find the complete source code used in this demo here.