TechniqueAMPNextjs

NextJS supports AMP natively

2020-11-03Chris Tham

AMP (or Accelerated Mobile Pages) is a web framework optimised for responsive websites, ads and emails. Find out how to support it on NextJS!

hero

According to the AMP website:

AMP is an open-source HTML framework that provides a straightforward way to create web pages that are fast, smooth-loading and prioritize the user-experience above all else.

AMP pages are cached by the Google AMP Cache which are used by Google Products (including search) to speed up URL requests. It’s basically a proprietary CDN tied to a search engine.

Although I am not a fan of Google and don’t use their services, I discovered AMP is built into Nextjs, so I gave it a go.

The basic instructions are on the Nextjs AMP documentation page.

Here is a Sample Amp Page on this site.

Subscribe to get updates to this site!

Like my articles? Enter your details and I will send you an email whenever the site has new content. I will not use your email for any other purpose.

Subscribe