Added base path
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { Html, Main, NextScript, DocumentProps, Head } from 'next/document'
|
||||
import { FC } from 'react'
|
||||
import Dict = NodeJS.Dict
|
||||
|
||||
const MyDocument: FC<DocumentProps> = ({ __NEXT_DATA__ }) => {
|
||||
const pageProps: Dict<unknown> | undefined = __NEXT_DATA__?.props?.pageProps
|
||||
return (
|
||||
<Html>
|
||||
<Head />
|
||||
<body className={pageProps?.bodyClassName as string}>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
|
||||
export default MyDocument
|
||||
Reference in New Issue
Block a user