-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-ssr.tsx
31 lines (30 loc) · 898 Bytes
/
gatsby-ssr.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { RenderBodyArgs } from 'gatsby';
export const onRenderBody = ({ setHtmlAttributes, setHeadComponents }: RenderBodyArgs) => {
setHtmlAttributes({ lang: `kr` });
setHeadComponents([
<link
rel='preload'
href='https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/GmarketSansLight.woff'
as='font'
type='font/woff'
crossOrigin='anonymous'
key='GmarketSansLight'
/>,
<link
rel='preload'
href='https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/GmarketSansMedium.woff'
as='font'
type='font/woff'
crossOrigin='anonymous'
key='GmarketSansMedium'
/>,
<link
rel='preload'
href='https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/GmarketSansBold.woff'
as='font'
type='font/woff'
crossOrigin='anonymous'
key='GmarketSansBold'
/>,
]);
};