-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
48 lines (39 loc) · 1.14 KB
/
netlify.toml
File metadata and controls
48 lines (39 loc) · 1.14 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
# Netlify Build Settings
[build]
base = "frontend/interview-perp-ai"
command = "npm install --legacy-peer-deps && npm run build"
publish = "dist"
[build.environment]
# Required for Vite 5+
NODE_VERSION = "22"
# Fix npm peer dependency issues
NPM_FLAGS = "--legacy-peer-deps"
# Your production backend
VITE_API_BASE_URL = "https://interview-prep-2-rfzb.onrender.com"
# Ignore PORT as a "secret"
SECRETS_SCAN_OMIT_KEYS = "PORT"
# Ignore paths containing worker/pdf bundles or build output
SECRETS_SCAN_OMIT_PATHS = "dist/*,public/*,src/components/Resume/*"
# Redirect SPA
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Security Headers
[[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"
# Cache static assets (improves performance)
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Cache fonts
[[headers]]
for = "*.woff2"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"