fa45fa0a60
* Add export const config support and make withAmp a no-op * Use babel plugin for PageConfig * Fix serverless-loader exports * Add backwards compatibility for withAmp
17 lines
360 B
JavaScript
17 lines
360 B
JavaScript
import Head from 'next/head'
|
|
|
|
export const config = { amp: true }
|
|
|
|
export default () => (
|
|
<div>
|
|
<Head>
|
|
<script src='/im-not-allowed.js' type='text/javascript' />
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `console.log("I'm not either :p")`
|
|
}}
|
|
/>
|
|
</Head>
|
|
<p>We only allow AMP scripts now</p>
|
|
</div>
|
|
)
|