âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â ð nextjs/app/api-reference/config/next-config-js/devIndicators â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
devIndicators allows you to configure the on-screen indicator that gives context about the current route you're viewing during development.
devIndicators: false | {
position?: 'bottom-right'
| 'bottom-left'
| 'top-right'
| 'top-left', // defaults to 'bottom-left',
},
Setting devIndicators to false will hide the indicator, however Next.js will continue to surface any build or runtime errors that were encountered.
If you expect a route to be static and the indicator has marked it as dynamic, 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)
â â /_not-found
â Æ /products/[id]
â (Static) prerendered as static content
Æ (Dynamic) server-rendered on demand
<AppOnly>
There are two reasons a route might opt out of static rendering:
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.
When exporting getServerSideProps or getInitialProps from a page, it will be marked as dynamic.
| Version | Changes |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| v16.0.0 | appIsrStatus, buildActivity, and buildActivityPosition options have been removed. |
| v15.2.0 | Improved on-screen indicator with new position option. appIsrStatus, buildActivity, and buildActivityPosition options have been deprecated. |
| v15.0.0 | Static on-screen indicator added with appIsrStatus option. |
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ