Skip to content

Commit 2e2bc1b

Browse files
fix: Improve formatting and clarity in Netlify deployment guide
1 parent 5a9e0ed commit 2e2bc1b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

NETLIFY_DEPLOY_GUIDE.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
### Option 1: Deploy from GitHub (Recommended)
66

77
1. **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

1314
2. **Build Settings:**
15+
1416
```
1517
Base directory: client
1618
Build command: npm run build
@@ -25,11 +27,13 @@
2527
### Option 2: Deploy via Netlify CLI
2628

2729
1. **Install Netlify CLI:**
30+
2831
```bash
2932
npm install -g netlify-cli
3033
```
3134

3235
2. **Login to Netlify:**
36+
3337
```bash
3438
netlify login
3539
```
@@ -43,6 +47,7 @@
4347
### Option 3: Drag & Drop Deploy
4448

4549
1. **Build locally:**
50+
4651
```bash
4752
cd client
4853
npm install --legacy-peer-deps
@@ -63,15 +68,17 @@
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

7075
1. **Update API URL:**
76+
7177
- Set `VITE_API_URL` to your Render API URL
7278
- Example: `https://your-api-name.onrender.com/api`
7379

7480
2. **Configure Custom Domain (Optional):**
81+
7582
- Site settings → Domain management
7683
- Add your custom domain
7784

0 commit comments

Comments
 (0)