# Static Export for Namecheap Hosting

This README explains how to export the ParkHillPartners website as a static build and host it on Namecheap.

---

## Quick Start

### 1. Build the Static Export

```bash
pnpm build:static
```

Or manually:

```bash
node build-static.mjs
```

This creates a `dist/` folder with all static files ready to upload.

### 2. Download the `dist/` Folder

The `dist/` folder contains:
- `index.html` — entry point
- `assets/` — bundled JavaScript and CSS
- `.htaccess` — Apache routing configuration
- `web.config` — IIS routing configuration

### 3. Upload to Namecheap

**Via FTP:**
1. Connect to your Namecheap FTP server
2. Upload all files from `dist/` to `public_html/`
3. Ensure `.htaccess` or `web.config` is uploaded (may be hidden)

**Via File Manager:**
1. Log in to Namecheap cPanel
2. Open File Manager
3. Navigate to `public_html/`
4. Upload all files from `dist/`

### 4. Test Your Site

Visit your domain: `https://yourdomain.com`

Test:
- ✅ Home page loads
- ✅ Navigation links work
- ✅ About Us page accessible
- ✅ Contact Us page accessible
- ✅ Images display correctly

---

## Troubleshooting

### Pages show 404 errors
- Ensure `.htaccess` (Apache) or `web.config` (IIS) is in `public_html/`
- Contact Namecheap support to confirm your server type

### Images don't load
- Check browser DevTools (F12) for failed requests
- Verify image URLs are using the correct CDN paths

### Styles are broken
- Clear browser cache (Ctrl+Shift+Delete)
- Check DevTools for CSS file 404 errors

---

## Full Documentation

See `DEPLOYMENT_GUIDE.md` for detailed step-by-step instructions, performance tips, and advanced configuration.

---

## Updating Your Site

To make changes and redeploy:

```bash
# Edit your files
# Then rebuild:
pnpm build:static

# Upload the new dist/ folder contents to public_html/
```

---

## Support

- **Namecheap Help:** https://www.namecheap.com/support/
- **Project Code:** See `client/src/pages/` for page components
