Skip to content

Commit b0f5a86

Browse files
author
Bartosz Butrym
committed
update netlify.toml file
1 parent 5cc8908 commit b0f5a86

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

netlify.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
[build]
22
command = "npm run build"
3+
publish = "dist"
34

45
[build.environment]
56
NODE_VERSION = "22.14.0"
67

8+
# Upewnij się, że _astro folder jest dostępny dla statycznych assetów
9+
[[headers]]
10+
for = "/_astro/*"
11+
[headers.values]
12+
Cache-Control = "public, max-age=31536000, immutable"
13+
14+
# Upewnij się, że pliki CSS mają prawidłowy MIME type
15+
[[headers]]
16+
for = "*.css"
17+
[headers.values]
18+
Content-Type = "text/css"
19+
20+
[[headers]]
21+
for = "*.js"
22+
[headers.values]
23+
Content-Type = "text/javascript"
24+
25+
# Zapobiegaj redirectom dla assetów
26+
[[redirects]]
27+
from = "/_astro/*"
28+
to = "/_astro/:splat"
29+
status = 200
30+
force = false

0 commit comments

Comments
 (0)