Skip to content

Commit 06550e6

Browse files
Merge pull request #429 from BootNodeDev/perf/lighthouse-improvements
perf: improve Lighthouse performance and best practices scores
2 parents 8cb9aab + 4ce93c3 commit 06550e6

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@
4040
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4141
<link
4242
href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap"
43-
rel="stylesheet" />
43+
rel="stylesheet"
44+
media="print"
45+
onload="this.media='all'" />
46+
<noscript>
47+
<link
48+
href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap"
49+
rel="stylesheet" />
50+
</noscript>
4451
</head>
4552

4653
<body>

src/components/sharedComponents/ui/Header/Logo.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const LogoLight =
1414
*/
1515
const Logo: FC<ImageProps> = ({ ...restProps }) => (
1616
<chakra.img
17+
width={193}
18+
height={77}
1719
content="var(--base-logo)"
1820
display="block"
1921
flexShrink="0"

vercel.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"headers": [
66
{
77
"key": "Content-Security-Policy-Report-Only",
8-
"value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https: blob:; connect-src 'self' https: wss:; frame-ancestors 'none'"
8+
"value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https: blob:; connect-src 'self' https: wss:; frame-src 'self' https://app.family.co https://id.porto.sh; frame-ancestors 'none'"
99
},
1010
{
1111
"key": "X-Content-Type-Options",
@@ -18,6 +18,20 @@
1818
{
1919
"key": "Referrer-Policy",
2020
"value": "strict-origin-when-cross-origin"
21+
},
22+
{
23+
"key": "Cross-Origin-Opener-Policy",
24+
"value": "same-origin-allow-popups"
25+
}
26+
]
27+
},
28+
{
29+
"source": "/(.*)",
30+
"missing": [{ "type": "host", "value": ".*\\.vercel\\.app" }],
31+
"headers": [
32+
{
33+
"key": "Strict-Transport-Security",
34+
"value": "max-age=63072000; includeSubDomains; preload"
2135
}
2236
]
2337
}

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineConfig(({ mode }) => {
2020
}),
2121
],
2222
build: {
23+
sourcemap: mode === 'development' ? 'hidden' : false,
2324
rollupOptions: {
2425
output: {
2526
manualChunks: {

0 commit comments

Comments
 (0)