-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathnetlify.toml
More file actions
66 lines (53 loc) · 1.26 KB
/
netlify.toml
File metadata and controls
66 lines (53 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[build]
publish = ".output/public"
command = "npm run build:netlify"
[build.environment]
NODE_VERSION = "20"
NPM_FLAGS = "--production=false"
# SolidStart SSR функции
[[redirects]]
from = "/*"
to = "/.netlify/functions/render"
status = 200
# API функции
[[redirects]]
from = "/api/feedback"
to = "/.netlify/functions/feedback"
status = 200
[[redirects]]
from = "/api/newsletter"
to = "/.netlify/functions/newsletter"
status = 200
[[redirects]]
from = "/api/og"
to = "/.netlify/functions/og"
status = 200
[[redirects]]
from = "/api/og/*"
to = "/.netlify/functions/og"
status = 200
[functions]
directory = ".netlify/functions"
node_bundler = "esbuild"
# Настройки для SolidStart
[build.processing]
skip_processing = false
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
# Headers для статических ресурсов
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"