-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetlify.toml
More file actions
51 lines (42 loc) · 1.15 KB
/
Copy pathnetlify.toml
File metadata and controls
51 lines (42 loc) · 1.15 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
[build]
publish = "." # Public directory (root)
[build.processing]
skip_processing = false
[build.processing.css]
bundle = true
minify = true
[build.processing.js]
bundle = true
minify = true
[build.processing.html]
pretty_urls = true
[build.processing.images]
compress = true
# ==============================
# 🚀 SECURITY & CACHE HEADERS (TESTING MODE)
# ==============================
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
# TESTING MODE: Prevent all caching so you can see your updates instantly
Cache-Control = "no-cache, no-store, must-revalidate"
# ==============================
# 🔒 SENSITIVE FILE PROTECTION
# ==============================
# Block access to firestore rules
[[redirects]]
from = "/firestore.rules"
to = "/404.html"
status = 404
force = true
# Redirect anything not found to 404.html
[[redirects]]
from = "/*"
to = "/404.html"
status = 404
force = false