hf-viz / netlify.toml
midah's picture
Fix Netlify build: add legacy-peer-deps flag for TypeScript 5 compatibility
adf5a74
raw
history blame
642 Bytes
[build]
base = "frontend"
publish = "frontend/build"
command = "npm install --legacy-peer-deps && npm run build"
[build.environment]
NODE_VERSION = "18"
# Set this to your backend URL (Railway, Render, etc.)
# REACT_APP_API_URL = "https://your-backend-url.railway.app"
# Redirect all routes to index.html for React Router (SPA routing)
[[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"