Q39: How did Accelerated Mobile Pages (AMP) work in the Pages Router?
The Pages Router supported AMP via export const config = { amp: true } (pure AMP) or amp: 'hybrid' (serves both standard HTML and AMP routes like /page?amp=1). Use useAmp() hook to inspect rendering mode.
Key Takeaways
- Configured via
export const config = { amp: true | 'hybrid' }. - Note: AMP support is legacy and removed in modern App Router setups.
Knowledge Check
Which hook in the Pages Router determined if a component was currently rendering in AMP mode for hybrid AMP pages?