Next.js · Senior · Question 52 of 75
What does export const ensureStatic = 'shell' guarantee for a route?
- ✓Correct answer: The build fails if later changes add request-time rendering to the route's App Shell
- 2The whole route is exported as static HTML
- 3The route is never prefetched
Explanation
Levels are 'shell', 'prefetch' and 'navigation', each stricter than the previous one. It works only with Cache Components and protects performance from regressions.