mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
16 lines
317 B
JavaScript
16 lines
317 B
JavaScript
import Head from 'next/head'
|
|
import { useAmp } from 'next/amp'
|
|
|
|
export const config = { amp: 'hybrid' }
|
|
|
|
export default () => (
|
|
<>
|
|
<Head>
|
|
{!useAmp() && <link rel="amphtml" href="/my-custom-amphtml" />}
|
|
<link rel="canonical" href="/my-custom-canonical" />
|
|
</Head>
|
|
|
|
<p>Hello world</p>
|
|
</>
|
|
)
|