Files
JJ KasperandGitHub 5febe218a6 Add nccing AMP optimizer (#21980)
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
2021-02-11 09:55:56 +00:00

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'
}