Skip to content

Commit d56bff2

Browse files
feat: Update Vercel environment variables and streamline configuration
1 parent 9e36a9a commit d56bff2

File tree

2 files changed

+19
-25
lines changed

2 files changed

+19
-25
lines changed

VERCEL_ENV_VARS.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1-
# Copy and paste these environment variables in Vercel:
1+
# Environment Variables for Vercel (Client Deployment)
2+
# Copy and paste these in Vercel dashboard under "Environment Variables"
23

3-
VITE_API_URL=https://your-render-api-url.onrender.com/api
4+
# API Configuration - CRITICAL: Replace with your actual Render API URL
5+
VITE_API_URL=https://aegis-express-api.onrender.com/api
6+
7+
# Cloudinary Configuration for PDF Storage
48
VITE_CLOUDINARY_CLOUD_NAME=dk1cria0z
59
VITE_CLOUDINARY_UPLOAD_PRESET=delivery_invoices
10+
11+
# Optional: Analytics and Monitoring
12+
VITE_ENVIRONMENT=production
13+
14+
# Instructions:
15+
# 1. Go to Vercel Dashboard
16+
# 2. Select your project
17+
# 3. Go to Settings → Environment Variables
18+
# 4. Add each variable above (Name = Key, Value = the value after =)
19+
# 5. Make sure to set them for "Production", "Preview", and "Development" environments

client/vercel.json

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
11
{
2-
"name": "AegisExpress Logistics",
3-
"description": "Enterprise logistics management system with real-time tracking, email notifications, and PDF generation",
42
"framework": "vite",
5-
"build": {
6-
"command": "npm run build",
7-
"output": "dist"
8-
},
9-
"install": {
10-
"command": "npm install"
11-
},
12-
"env": {
13-
"VITE_API_URL": {
14-
"description": "API endpoint URL (e.g., https://your-api.onrender.com/api)",
15-
"required": true
16-
},
17-
"VITE_CLOUDINARY_CLOUD_NAME": {
18-
"description": "Cloudinary cloud name for PDF storage",
19-
"value": "dk1cria0z"
20-
},
21-
"VITE_CLOUDINARY_UPLOAD_PRESET": {
22-
"description": "Cloudinary upload preset for invoices",
23-
"value": "delivery_invoices"
24-
}
25-
},
3+
"buildCommand": "npm run build",
4+
"outputDirectory": "dist",
5+
"installCommand": "npm install",
266
"functions": {},
277
"redirects": [
288
{

0 commit comments

Comments
 (0)