next-app-boilerplate/pages/_document.tsx

20 lines
370 B
TypeScript
Raw Normal View History

import Document, { Html, Main, NextScript } from 'next/document'
import CommonHead from '@/components/Head/CommonHead'
2022-03-24 01:52:23 +01:00
class MyDocument extends Document {
render(): JSX.Element {
return (
<Html lang='en'>
<CommonHead />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
2022-03-24 01:52:23 +01:00
}
export default MyDocument