mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Binary file not shown.
BIN
beta/public/fonts/SourceCodePro-Regular.ttf
Normal file
BIN
beta/public/fonts/SourceCodePro-Regular.ttf
Normal file
Binary file not shown.
@@ -82,13 +82,6 @@ export const Seo = withRouter(
|
||||
key="twitter:image"
|
||||
content={`https://beta.reactjs.org${image}`}
|
||||
/>
|
||||
<link
|
||||
rel="preload"
|
||||
href="/fonts/Source-Code-Pro-Regular.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
|
||||
{children}
|
||||
</Head>
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro'),
|
||||
url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
|
||||
src: url('/fonts/SourceCodePro-Regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Source Code Pro'),
|
||||
url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
|
||||
src: url('/fonts/SourceCodePro-Regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
/* Write your own custom base styles here */
|
||||
|
||||
@@ -254,16 +254,5 @@
|
||||
"destination": "https://5a046bf5a6188f4b8fa4938a--reactjs.netlify.com",
|
||||
"permanent": false
|
||||
}
|
||||
],
|
||||
"headers": [
|
||||
{
|
||||
"source": "/fonts/(.*).woff2",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cache-Control",
|
||||
"value": "public, max-age=31536000, immutable"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user