diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-10-22 23:51:41 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-10-22 23:51:41 +0300 |
commit | 97b05f5579e863e3b6a03d3113236f64fe489583 (patch) | |
tree | 03f4fef07cf47c2b8531714b3e643ff9e04cf3c1 /src/pages/_document.tsx | |
parent | 0ed6bf41be126e8a4f274de06545dbf4f3f883c2 (diff) | |
download | benzin-next-97b05f5579e863e3b6a03d3113236f64fe489583.tar.gz |
feat: use external stylesheet
Diffstat (limited to 'src/pages/_document.tsx')
-rw-r--r-- | src/pages/_document.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx new file mode 100644 index 0000000..c783ad4 --- /dev/null +++ b/src/pages/_document.tsx @@ -0,0 +1,16 @@ +import { Html, Head, Main, NextScript } from 'next/document' +import benzinConfig from '../benzinConfig' + +export default function Document() { + return ( + <Html> + <Head> + <link rel="stylesheet" href={`${benzinConfig.CDN}${benzinConfig.cssPath}`} type="text/css" /> + </Head> + <body> + <Main /> + <NextScript /> + </body> + </Html> + ) +} |