This example has two pages, /
and /about
, which have
AMP versions available by
adding ?amp=1
to the URLs. These are linked in the
header of the non-AMP pages with <link rel="amphtml">
.
npm run dev
npm run build && npm start
now
npm install -g amphtml-validator
amphtml-validator 'http://localhost:3000/?amp=1'
amphtml-validator 'http://localhost:3000/about?amp=1'