devIndicators
devIndicators
allows you to configure the on-screen indicators that give context about the current route you're viewing during development.
devIndicators: {
buildActivityPosition?: 'bottom-right'
| 'bottom-left'
| 'top-right'
| 'top-left', // defaults to 'bottom-right'
},
Troubleshooting
Static route not showing the indicator
If you expect a route to be static and the indicator is enabled but not showing, it's likely the route has opted out of static rendering.
You can confirm if a route is static or dynamic by building your application using next build --debug
, and checking the output in your terminal. Static (or prerendered) routes will display a ○
symbol, whereas dynamic routes will display a ƒ
symbol. For example:
Route (app) Size First Load JS
┌ ○ /_not-found 0 B 0 kB
└ ƒ /products/[id] 0 B 0 kB
○ (Static) prerendered as static content
ƒ (Dynamic) server-rendered on demand
There are two reasons a route might opt out of static rendering:
- The presence of Dynamic APIs which rely on runtime information.
- An uncached data request, like a call to an ORM or database driver.
Check your route for any of these conditions, and if you are not able to statically render the route, then consider using loading.js
or <Suspense />
to leverage streaming.
Was this helpful?