Debugging
ddd
React Scan
In VitNode we implemented the React Scan feature that will show you re-rendering components in real-time. This feature will help you to optimize your React application.
To enable React Scan, you need to pass debug
props in RootLayout
component:
Fetching logs
Next.js has a build-in fetch cache that will cache the fetch requests. You can enable the fetch logs by passing the logging
object in the next.config.ts
file:
You can read more about it in the official documentation.