Deployed — Premier Realty is Live

Worker, D1, and Pages are all configured and running at premierrealty.sonandigital.com.

Deployment Reference

cd "E:\Claude_Projects\sonan-trackers\realtor-portal"

# Re-apply migrations (if schema changes)
npx wrangler d1 migrations apply realtor_db --remote --env premierrealty

# Redeploy Worker
npx wrangler deploy --env premierrealty

# Rotate JWT_SECRET
npx wrangler secret put JWT_SECRET --env premierrealty

# Push code changes (triggers Pages auto-build)
git push origin main

Pages Settings

SettingValue
GitHub repo + branchsonantechai/realtor-portal → main
Build commandnpm run build
Output directorydist
Env varVITE_API_URL = https://premierrealty-api.sonandigital.com

Adding a Second Realtor Client

Duplicate the [env.premierrealty] block in wrangler.toml with a new env name, create a new D1 (npx wrangler d1 create <new>_db), write a seed migration, deploy the Worker, create a new Pages project with the new VITE_API_URL. No code changes to the React frontend.