File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 55### Option 1: Deploy from GitHub (Recommended)
66
771 . ** Connect Repository to Netlify:**
8+
89 - Go to [ Netlify] ( https://app.netlify.com/ )
910 - Click "New site from Git"
1011 - Choose GitHub and authorize Netlify
1112 - Select your repository: ` RabbitDaCoder/ExpressLogistics `
1213
13142 . ** Build Settings:**
15+
1416 ```
1517 Base directory: client
1618 Build command: npm run build
2527### Option 2: Deploy via Netlify CLI
2628
27291 . ** Install Netlify CLI:**
30+
2831 ``` bash
2932 npm install -g netlify-cli
3033 ```
3134
32352 . ** Login to Netlify:**
36+
3337 ``` bash
3438 netlify login
3539 ```
4347### Option 3: Drag & Drop Deploy
4448
45491 . ** Build locally:**
50+
4651 ``` bash
4752 cd client
4853 npm install --legacy-peer-deps
6368✅ ** Security Headers** - XSS protection, frame options, etc.
6469✅ ** Cache Control** - Optimized caching for static assets
6570✅ ** Node.js 18** - Stable Node version for builds
66- ✅ ** Legacy Peer Deps** - Handles npm dependency conflicts
71+ ✅ ** Legacy Peer Deps** - Handles npm dependency conflicts
6772
6873## Post-Deployment Steps
6974
70751 . ** Update API URL:**
76+
7177 - Set ` VITE_API_URL ` to your Render API URL
7278 - Example: ` https://your-api-name.onrender.com/api `
7379
74802 . ** Configure Custom Domain (Optional):**
81+
7582 - Site settings → Domain management
7683 - Add your custom domain
7784
You can’t perform that action at this time.
0 commit comments