Root layout blocks indexing
Why it matters
robots noindex in the root layout's metadata removes every page from search results (Lighthouse: page is blocked from indexing).
Fix
Remove it, or set it only outside production, e.g. from VERCEL_ENV.
Credit
A noindex robots directive removes a page from search results.
From Google Chrome
Lighthouse reports pages blocked from indexing.
References
- Block Search Indexing with noindexGoogle Search Central
- Robots Meta Tags SpecificationsGoogle Search Central
- Page is blocked from indexingChrome for Developers
- generateMetadataNext.js