1 | // _document is only rendered on the server side and not on the client side
|
2 | // Event handlers like onClick can't be added to this file
|
3 |
|
4 | // ./pages/_document.js
|
5 | import Document, { Head, Main, NextScript } from "next/document"
|
6 | import React from "react"
|
7 | import "../pages-content/_common/main.scss"
|
8 |
|
9 | export default class MyDocument extends Document {
|
10 | render() {
|
11 | return (
|
12 | <html>
|
13 | <Head>
|
14 | <meta name="viewport" content="width=device-width, initial-scale=1" />
|
15 | </Head>
|
16 | <body className="custom_class">
|
17 | <Main />
|
18 | <NextScript />
|
19 | </body>
|
20 | </html>
|
21 | )
|
22 | }
|
23 | }
|