rsnext/packages/next-server/lib/amphtml-context.ts
Tim Neutkens 4051ffcb01 [experimental] Rendering to AMP (#6218)
* Add initial AMP implementation

* Implement experimental feature flag

* Implement feedback from sbenz

* Add next/amp and `useAmp` hook

* Use /:path*/amp instead

* Add canonical

* Add amphtml tag

* Add ampEnabled for rel=“amphtml”

* Remove extra type
2019-02-14 10:22:57 -05:00

3 lines
107 B
TypeScript

import * as React from 'react'
export const IsAmpContext: React.Context<any> = React.createContext(false)