We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 265e6f3 + fb66c58 commit 461f6f3Copy full SHA for 461f6f3
pages/_document.js
@@ -20,7 +20,7 @@ class MyDocument extends Document {
20
</>}
21
22
{BLOG.FONT_URL?.map((fontUrl, index) => {
23
- if (fontUrl.endsWith('.css')) {
+ if (fontUrl.endsWith('.css') || fontUrl.includes('googleapis.com/css')) {
24
return <link key={index} rel="stylesheet" href={fontUrl} />
25
} else {
26
return <link key={index} rel="preload" href={fontUrl} as="font" type="font/woff2" />
0 commit comments