2019-07-29 09:18:23 +02:00
|
|
|
import Head from 'next/head'
|
|
|
|
import { useAmp } from 'next/amp'
|
|
|
|
|
|
|
|
export const config = { amp: 'hybrid' }
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<>
|
|
|
|
<Head>
|
2019-11-11 04:24:53 +01:00
|
|
|
{!useAmp() && <link rel="amphtml" href="/my-custom-amphtml" />}
|
|
|
|
<link rel="canonical" href="/my-custom-canonical" />
|
2019-07-29 09:18:23 +02:00
|
|
|
</Head>
|
|
|
|
|
|
|
|
<p>Hello world</p>
|
|
|
|
</>
|
|
|
|
)
|