-
Notifications
You must be signed in to change notification settings - Fork 25
/
netlify.toml
44 lines (36 loc) · 1.88 KB
/
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
41
42
43
44
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
# base = "./"
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "dist/"
# Default build command.
command = "npm run build"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-UA-Compatible = "IE=edge"
Referrer-Policy = "no-referrer, strict-origin"
X-Content-Type-Options = "nosniff"
Content-Security-Policy = "default-src 'none'; connect-src 'self'; font-src 'self'; frame-src 'self'; img-src 'self'; manifest-src 'self'; media-src 'self'; object-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; worker-src 'self'; form-action 'none'; base-uri 'none'; frame-ancestors 'none'"
Feature-Policy = "geolocation 'none'; midi 'none'; payment 'none'; camera 'none'; usb 'none'; fullscreen 'self'; magnetometer 'none'; picture-in-picture 'none'; accelerometer 'none'; autoplay 'none'; document-domain 'none'; encrypted-media 'none'; gyroscope 'none'; xr-spatial-tracking 'none'; sync-xhr none; microphone 'none'; display-capture 'none'; battery 'none'; ambient-light-sensor 'none';"
Permissions-Policy = "interest-cohort=()"
# Redirects
# - https://docs.netlify.com/routing/redirects/
# - https://docs.netlify.com/routing/redirects/rewrites-proxies/
#
# HTTP status codes
# - 301 Moved Permanently
# - https://en.wikipedia.org/wiki/HTTP_301
[[redirects]]
from = "/README"
to = "/"
status = 301
force = false