-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnetlify.toml
29 lines (29 loc) · 978 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
[build]
command = "npm run build"
publish = "public"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
Content-Security-Policy = "script-src 'self' 'unsafe-inline' www.google-analytics.com dev-api.ossn.club backend.ossn.club https:"
[[headers]]
for = "*.svg"
[headers.values]
Content-Type = "image/svg+xml; charset=utf-8"
[[redirects]]
from = "https://dev.ossn.club/api/*"
to = "https://dev-api.ossn.club/api/:splat"
status = 200
[[redirects]]
from = "/api/*"
to = "https://backend.ossn.club/api/:splat"
status = 200
[context.production]
environment = { ENV = "PRODUCTION", NODE_ENV = "PRODUCTION"}
[context.deploy-preview]
environment = { ENV = "PREVIEW", NODE_ENV = "PRODUCTION"}
[context.branch-deploy]
environment = { ENV = "DEVELOP", NODE_ENV = "PRODUCTION"}