File tree Expand file tree Collapse file tree 3 files changed +4
-42
lines changed
Expand file tree Collapse file tree 3 files changed +4
-42
lines changed Original file line number Diff line number Diff line change 22# Copy and paste these in Vercel dashboard under "Environment Variables"
33
44# API Configuration - CRITICAL: Replace with your actual Render API URL
5- VITE_API_URL=https://aegis-express-api.onrender.com/api
5+
66
77# Cloudinary Configuration for PDF Storage
88VITE_CLOUDINARY_CLOUD_NAME=dk1cria0z
99VITE_CLOUDINARY_UPLOAD_PRESET=delivery_invoices
10-
11- # Optional: Analytics and Monitoring
1210VITE_ENVIRONMENT=production
11+ VITE_API_URL=https://aegis-express-api.onrender.com/api
12+ # Optional: Analytics and Monitoring
13+
1314
1415# Instructions:
1516# 1. Go to Vercel Dashboard
Original file line number Diff line number Diff line change 1111[build .environment ]
1212 # Node.js version
1313 NODE_VERSION = " 18"
14-
15- # npm settings
16- NPM_FLAGS = " --legacy-peer-deps"
1714
1815# Redirect rules for SPA routing
1916[[redirects ]]
2017 from = " /*"
2118 to = " /index.html"
2219 status = 200
23-
24- # Custom headers for security and performance
25- [[headers ]]
26- for = " /*"
27- [headers .values ]
28- X-Frame-Options = " DENY"
29- X-XSS-Protection = " 1; mode=block"
30- X-Content-Type-Options = " nosniff"
31- Referrer-Policy = " strict-origin-when-cross-origin"
32-
33- [[headers ]]
34- for = " /static/*"
35- [headers .values ]
36- Cache-Control = " public, max-age=31536000, immutable"
37-
38- # Error pages
39- [[redirects ]]
40- from = " /404"
41- to = " /index.html"
42- status = 200
43-
44- # Build optimization
45- [build .processing ]
46- skip_processing = false
47-
48- [build .processing .css ]
49- bundle = true
50- minify = true
51-
52- [build .processing .js ]
53- bundle = true
54- minify = true
55-
56- [build .processing .html ]
57- pretty_urls = true
Original file line number Diff line number Diff line change 88 "build" : " vite build" ,
99 "build:tsc" : " tsc -b && vite build" ,
1010 "build:vercel" : " vite build --mode production" ,
11- "build:netlify" : " npm ci --legacy-peer-deps && vite build --mode production" ,
1211 "lint" : " eslint ." ,
1312 "preview" : " vite preview"
1413 },
You can’t perform that action at this time.
0 commit comments