-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
50 lines (43 loc) · 1.12 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
45
46
47
48
49
50
[build]
command = "npm run build"
publish = "dist"
functions = "_lambda-build"
[build.environment]
# Update Node.js to a modern version that fully supports ES modules
NODE_VERSION = "18.19.0" # Changed from "10.15"
NPM_VERSION = "10.2.3" # Updated from "6.10.2" to match Node 18
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer-when-downgrade"
# Netlify subdomain
[[redirects]]
from = "https://apurvmishra.netlify.com/*"
to = "https://apurvmishra.xyz/:splat"
status = 301
force = true
[[redirects]]
from = "https://www.apurvmishra.xyz/*"
to = "https://apurvmishra.xyz/:splat"
status = 301
force = true
# Bots
[[redirects]]
from = "/wp-login.php"
to = "https://www.google.com/"
status = 302
force = true
# Favicon
[[redirects]]
from = "/assets/images/touch/*"
to = "/assets/images/favicon/:splat"
status = 301
force = true
# 404s
[[redirects]]
from = "*"
to = "/404"
status = 404