-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
41 lines (35 loc) · 919 Bytes
/
Copy pathnetlify.toml
File metadata and controls
41 lines (35 loc) · 919 Bytes
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
[build]
command = "npm run build"
functions = "netlify/functions"
publish = "dist"
[functions]
node_bundler = "esbuild"
# Increase timeout for AI-related functions
[functions."ai-assistant"]
timeout = 60
[dev]
command = "npm run dev:astro"
port = 8080
targetPort = 4321
functionsPort = 9999
autoLaunch = false
# Security headers
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "strict-origin-when-cross-origin"
# Cache static assets
[[headers]]
for = "/_astro/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Environment variables (configure in Netlify dashboard)
# GRAPHQL_ENDPOINT=...
# GRAPHQL_API_KEY=...
# AUTH_SECRET=your-secret-key
# ADMIN_USERNAME=admin
# ADMIN_PASSWORD_HASH=bcrypt-hash
# ANTHROPIC_API_KEY=sk-ant-api03-...