Skip to content

Commit 472b16c

Browse files
refactor: Remove unused build configurations and clean up netlify.toml
1 parent 2e2bc1b commit 472b16c

File tree

3 files changed

+4
-42
lines changed

3 files changed

+4
-42
lines changed

VERCEL_ENV_VARS.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
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
88
VITE_CLOUDINARY_CLOUD_NAME=dk1cria0z
99
VITE_CLOUDINARY_UPLOAD_PRESET=delivery_invoices
10-
11-
# Optional: Analytics and Monitoring
1210
VITE_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

client/netlify.toml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,9 @@
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

client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
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
},

0 commit comments

Comments
 (0)