Capítulo 199 de 456
Experimental config flag required to use the forbidden() and unauthorized() APIs in your app. Currently canary-channel and subject to change.
true para habilitar forbidden e unauthorized.import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
authInterrupts: true,
},
}
export default nextConfig
forbidden() e unauthorized() não funcionam.forbidden.js e unauthorized.js, para renderizar UI de erro nesses cenários.