mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Migrate to AMP Optimizer 2.0 Most notable changes: * Automatically import all missing AMP component scripts. * Automatically add any missing mandatary AMP tags. * 40% faster I've updated the docs to mention component auto import and added a corresponding test case. * change validator tests which now pass validation * Improve wording Co-Authored-By: JJ Kasper <[email protected]> * Update adding-amp-components.md Co-authored-by: JJ Kasper <[email protected]> Co-authored-by: Joe Haddad <[email protected]>
9 lines
210 B
JavaScript
9 lines
210 B
JavaScript
export const config = { amp: true }
|
|
|
|
export default () => (
|
|
<div>
|
|
{/* I show a warning since the width and height attribute is missing */}
|
|
<amp-video src="/cats.mp4" layout="responsive" />
|
|
</div>
|
|
)
|