e5111745b5
* Add WithAmp to enable AMP support for pages instead of .amp.js * Update handling for exporting AMP * Fix ampPath in export for / path and revert isAmp logic to handle right * Update amphtml test suite * Add handling for noDirtyAmp during export and update amp-export test suite * Update serverless and export-default-map test suites * Update require-page tests
8 lines
214 B
JavaScript
8 lines
214 B
JavaScript
import { withAmp } from 'next/amp'
|
|
|
|
export default withAmp(() => (
|
|
<div>
|
|
{/* I show a warning since the amp-video script isn't added */}
|
|
<amp-video src='/cats.mp4' height={400} width={800} />
|
|
</div>
|
|
))
|