Capítulo 209 de 456
devIndicators configures the on-screen dev-only indicator that shows context about the current route (e.g. static vs dynamic) while developing — reposition it or turn it off entirely.
devIndicators.position: 'bottom-left' (default) | 'bottom-right' | 'top-left' | 'top-right'.devIndicators: false: hides the indicator entirely; compile/runtime errors still surface.next build --debug output shows ○ for prerendered (static) routes and ƒ for dynamic (server-rendered on demand) routes.import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
devIndicators: {
position: 'bottom-right', // 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'
},
}
export default nextConfig
Route (app)
┌ ○ /_not-found
└ ƒ /products/[id]
○ (Static) prerendered as static content
ƒ (Dynamic) server-rendered on demand
next build --debug pra saber se uma rota é estática ou dinâmica.| Version | Changes |
|---|---|
| v16.0.0 | appIsrStatus, buildActivity, buildActivityPosition removidos. |
| v15.2.0 | Indicador melhorado com nova opção position; opções antigas deprecadas. |
| v15.0.0 | Indicador estático adicionado com opção appIsrStatus. |
next build --debug pra confirmar estaticamente se uma rota é ○ ou ƒ, em vez de confiar só no indicador visual.loading.js ou <Suspense /> pra aproveitar streaming em vez de forçar tudo síncrono.devIndicators: false) não esconde erros de compilação/runtime.