mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This adds ncc'ing the AMP optimizer package to speed up install times and cache the runtime. Closes: https://github.com/vercel/next.js/issues/20404
10 lines
165 B
JavaScript
10 lines
165 B
JavaScript
import { useAmp } from 'next/amp'
|
|
|
|
export const config = {
|
|
amp: 'hybrid',
|
|
}
|
|
|
|
export default function Amp(props) {
|
|
return useAmp() ? 'AMP mode' : 'normal mode'
|
|
}
|