-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
40 lines (35 loc) · 854 Bytes
/
netlify.toml
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
[build]
command = "npm run build"
publish = "public"
functions = "functions"
[build.environment]
NODE_VERSION="12.18.3"
[dev]
framework = "#custom"
command = "npm run dev"
targetPort = 5000
port = 8888
publish = "public"
[[headers]]
for = "/*"
[headers.values]
Referrer-Policy = "no-referrer-when-downgrade"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "1; mode=block"
[[headers]]
for = "/dist/assets/*"
[headers.values]
cache-control = '''
public,
max-age=31536000,
immutable'''
[[redirects]]
from = "/api/login"
to = "/.netlify/functions/login"
status = 200
[[redirects]]
from = "/account"
to = "/.netlify/functions/account"
status = 200