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 | |
parent | 0ed6bf41be126e8a4f274de06545dbf4f3f883c2 (diff) | |
download | benzin-next-97b05f5579e863e3b6a03d3113236f64fe489583.tar.gz |
feat: use external stylesheet
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/_app.tsx | 1 | ||||
-rw-r--r-- | src/pages/_document.tsx | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 18692df..3dd15a2 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,4 +1,3 @@ -import '../styles/globals.css'; import logo from '../../public/eug-vs.png'; import type { AppProps } from 'next/app'; import Image from 'next/future/image'; 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> + ) +} |