Skip to content

Commit 4d6c31d

Browse files
committed
Optimize fonts
1 parent a3f3eea commit 4d6c31d

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

netlify.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
[build]
22
publish = "dist"
3-
command = "npm run build"
4-
[[headers]]
5-
for = "/build/*"
6-
[headers.values]
7-
Cache-Control = "public, max-age=31536000, immutable"
3+
command = "npm run build"

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"dependencies": {
2525
"@builder.io/qwik": "1.1.5",
2626
"@builder.io/qwik-city": "1.1.5",
27-
"@fontsource/inter": "^4.5.15",
2827
"@qwikest/icons": "^0.0.8",
2928
"@unpic/qwik": "^0.0.19",
3029
"gray-matter": "^4.0.3",

public/_headers

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/build/*
2+
Cache-Control: public, max-age=31536000, immutable
3+
/subfont/*
24
Cache-Control: public, max-age=31536000, immutable

vercel.json

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
"value": "public, max-age=31536000, immutable"
1111
}
1212
]
13+
},
14+
{
15+
"source": "/subfont/(.*)",
16+
"headers": [
17+
{
18+
"key": "Cache-Control",
19+
"value": "public, max-age=31536000, immutable"
20+
}
21+
]
1322
}
1423
]
1524
}

0 commit comments

Comments
 (0)