网页 综合 更新时间 2026-05-12 00:00:00

devIndicators

自动蜘蛛 nextjs.org 正文约 1151 字
devIndicators
devIndicators allows you to configure the on-screen indicator that gives context about the current route you're viewing during development.
Open next.config.ts and set position to choose where the indicator renders. The default is bottom-left.
To hide the indicator entirely, set devIndicators to false. Next.js will still surface any compile 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 prerendering.
You can confirm if a route is prerendered or dynamically rendered 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:
There are two reasons a route might opt out of prerendering:
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.
Last updated May 12, 2026
Subscribe to our newsletter
Stay updated on new releases and features, guides, and case studies.
访问原文 返回搜索 https://nextjs.org/docs/app/api-reference/config/next-config-js/devIndicators
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。