# Deployment launch plan for LoopLedger

A production handoff plan for taking Referral Network from sales preview to a client-owned launch domain with Netlify hosting, environment gates, monitoring, rollback, and canonical SEO/AEO checks.

Repository: Idea-R/ideas-realized-page
Preview domain: referral-network.ideas-realized.com
Production domain: referral-network.ideas-realized.com
JSON manifest: /demo-library/referral-network/deployment-launch.json
OpenAPI implementation spec: /demo-library/referral-network/openapi.json

## Hosting Model

Single Next.js application deployed from GitHub to Netlify, with demo subdomains rewritten into app-only routes and canonical SEO pages kept on ideas-realized.com.

## Branch Strategy

Ship from a reviewed feature branch into the existing Netlify production site, then attach the selected client subdomain as a named domain alias after acceptance gates pass.

## Environments

### Sales preview

URL: https://referral-network.ideas-realized.com
Status: complete
Purpose: App-only demo surface used in sales calls and embedded from the canonical landing page.
Data mode: Seeded client-side preview data only; no tenant secrets or live customer records.

### Deploy preview

URL: Netlify deploy preview URL from the feature branch
Status: in progress
Purpose: Review branch before domain aliasing, schema checks, browser QA, and stakeholder sign-off.
Data mode: Seeded demo data plus import template samples.

### Pilot production

URL: https://referral-network.ideas-realized.com
Status: queued
Purpose: Referral network management software pilot package launch for the first buyer cohort.
Data mode: Run a dry import into the tenant preview, reconcile duplicates with the chapter admin, then open logging for one meeting cycle before enabling sponsor reporting.

## Domain And DNS Records

- [ready] CNAME referral-network.ideas-realized.com -> Ideas Realized Netlify site alias or wildcard domain. Owner: Ideas Realized technical lead. Keeps the app-only demo available as the sales URL while the canonical page remains on ideas-realized.com.
- [needs client] CNAME referral-network.ideas-realized.com -> Client DNS points to the approved Netlify site alias. Owner: Client DNS owner. Use a client-owned subdomain such as connect.clientdomain.com for production and keep referral-network.ideas-realized.com as the sales preview.
- [needs client] TXT _netlify.referral-network.ideas-realized.com -> Netlify verification token issued during domain setup. Owner: Client DNS owner. Required before SSL issuance and production cutover when the domain is client-owned.

## Environment Variables

- [template] NEXT_PUBLIC_SITE_URL (Build and runtime). Owner: Ideas Realized technical lead. Set to https://referral-network.ideas-realized.com for pilot production and keep canonical demo routes pointed at ideas-realized.com.
- [ready] NEXT_DISABLE_IMAGE_OPTIMIZATION (Netlify runtime). Owner: Ideas Realized technical lead. Use when the host requires unoptimized Next images for generated poster assets and demo previews.
- [needs client] AUTH_PROVIDER_CONFIG (Runtime secret). Owner: Implementation lead. Email magic link for pilot users, with optional Google Workspace SSO after the first chapter launch.
- [template] NOTIFICATION_SENDER (Runtime secret). Owner: Implementation lead. Email: Quick referral follow-up
- [template] ANALYTICS_WRITE_KEY (Runtime secret). Owner: Growth lead. Instrument landing CTA, demo launch, referral create, status change, follow-up reminder, sponsor export, and implementation-spec download before the first pilot.

## Release Gates

- [complete] Submit a referral and move it through acknowledgement. Owner: Chapter admin. Evidence: Referral board, follow-up task, and recognition card update together.
- [complete] Export partner cohort implementation spec. Owner: Sales lead. Evidence: Markdown and JSON exports include GTM and launch package fields.
- [queued] Hide private value from sponsor viewer role. Owner: Client sponsor. Evidence: Permission matrix ready; needs client sign-off.
- [complete] Canonical and noindex routing verified. Owner: Technical lead. Evidence: Main-domain landing pages remain canonical while app-only routes are used for subdomain launch URLs.
- [queued] Client proposal and implementation spec approved. Owner: Client sponsor. Evidence: LoopLedger pilot proposal and JSON/Markdown implementation spec are reviewed before production domain cutover.

## Monitoring Signals

- Demo app availability: Homepage and app route return 200 from production domain after DNS cutover. Owner: Technical lead. Response: Rollback DNS alias to preview or pause launch announcement until the route passes.
- Accepted referrals with owner follow-up within 5 business days: Pilot usage is visible in the buyer dashboard within the first review cycle. Owner: Growth lead. Response: Review analytics key, event mapping, and privacy guardrails before widening access.
- Confirm CRM or spreadsheet source of truth for partner accounts.: No open launch blocker can affect first user workflow. Owner: Implementation lead. Response: Hold go-live and keep the app in preview mode until the blocker has owner-approved evidence.

## Rollback Plan

- Keep the sales preview subdomain live until the client production domain passes route, SSL, auth, and acceptance checks.
- If client DNS or SSL fails, remove the production alias and route users back to the preview subdomain.
- If data import fails, restore the last approved seed/import snapshot and hold workflow edits until the exception report is reviewed.
- If notification or integration credentials fail, disable outbound automation and continue with manual review queues.
- Document the rollback decision in the operations ledger and add the next action to the live ops command center.

## Go-Live Sequence

- Merge the reviewed branch after typecheck, lint, build, schema validation, and browser QA pass.
- Create or confirm the Netlify domain alias for the sales preview subdomain.
- Request client DNS records for referral-network.ideas-realized.com and verify ownership before SSL issuance.
- Load tenant brand tokens, roles, launch assets, import templates, and acceptance evidence.
- Run release gates, verify monitoring signals, and approve the first pilot user cohort.
- Publish SEO/AEO links for Referral management software for business networks and route launch CTAs to the canonical demo landing page.

## Support Handoff

- Pilot support scope: $750-$2.5k/month recurring for hosting, support, and workflow tuning.
- Member roster import template
- Sponsor report sample
- Chapter launch checklist
- Pick pilot cohort: Client sponsor; Use one chapter or partner cohort with at least 75 active members.
- Finalize recognition rules: Operations lead; Decide which referral outcomes trigger meeting shout-outs and sponsor reports.

## SEO Launch Checks

- /demo-library/referral-network remains the canonical landing page for referral management software for business networks.
- https://referral-network.ideas-realized.com remains app-only and noindex for thin duplicate prevention.
- Confirm internal links mention member referral tracking app.
- Confirm internal links mention partner referral dashboard.
- Confirm internal links mention business networking group software.
- Answer target: How do business networking groups track referrals?
- Answer target: What is the best way to prove referral network ROI?
