25 lines
582 B
TypeScript
25 lines
582 B
TypeScript
import { Html, Head, Main, NextScript } from 'next/document'
|
|
import path from 'node:path';
|
|
import { pdfjs } from 'react-pdf';
|
|
|
|
|
|
export default function Document() {
|
|
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
|
|
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
<link
|
|
rel="stylesheet"
|
|
type="text/css"
|
|
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
|
|
/>
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|