Skip to content

Commit fff1466

Browse files
Add Netlify config and header/redirect rules for deploy checks
1 parent f90173c commit fff1466

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

netlify.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[build]
2+
command = "npm install && npm run build"
3+
publish = "dist"
4+
environment = { NODE_VERSION = "18" }
5+
6+
[[headers]]
7+
for = "/*"
8+
[headers.values]
9+
X-Frame-Options = "DENY"
10+
X-Content-Type-Options = "nosniff"
11+
Referrer-Policy = "strict-origin-when-cross-origin"
12+
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
13+
14+
[[redirects]]
15+
from = "/*"
16+
to = "/index.html"
17+
status = 200

public/_headers

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
X-Frame-Options: DENY
3+
X-Content-Type-Options: nosniff
4+
Referrer-Policy: strict-origin-when-cross-origin
5+
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload

public/_redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/* /index.html 200
1+
/* /index.html 200
22

0 commit comments

Comments
 (0)