-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
49 lines (43 loc) · 1.69 KB
/
netlify.toml
File metadata and controls
49 lines (43 loc) · 1.69 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
[build]
command = "npm install && npm run build"
publish = ".next"
[build.environment]
NODE_VERSION = "18"
# Firebase Configuration
NEXT_PUBLIC_FIREBASE_API_KEY = "AIzaSyC5i38Q_4QYx6RWs627_l5xdQ8IAY1b8I8"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN = "cnostruct.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_PROJECT_ID = "cnostruct"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET = "cnostruct.firebasestorage.app"
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID = "768135253274"
NEXT_PUBLIC_FIREBASE_APP_ID = "1:768135253274:web:9662ffb7911766ca5bf0a3"
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID = "G-J6J233XBCY"
NEXT_PUBLIC_FIREBASE_DATABASE_URL = "https://cnostruct.firebaseio.com"
# API Keys - Groq (primary AI provider)
NEXT_PUBLIC_GROQ_API_KEY = "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"
NEXT_PUBLIC_GEMINI_API_KEY = "AIzaSyDA8ReX3lUqucg23jKsWbbyviigD3jF6lU"
# Set your backend URL here (optional - uses Groq if not set)
# NEXT_PUBLIC_API_URL = "https://your-tunnel-url.ngrok-free.app"
[[plugins]]
package = "@netlify/plugin-nextjs"
# Redirect API calls to backend (update with your backend URL in production)
[[redirects]]
from = "/api/backend/*"
to = "${NEXT_PUBLIC_API_URL}/:splat"
status = 200
force = true
# Headers for security and CORS
[[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"
# Development context
[context.development]
[context.development.environment]
NEXT_PUBLIC_API_URL = "http://localhost:8000"
# Preview deploys
[context.deploy-preview]
[context.deploy-preview.environment]
# Use your staging backend URL here