Skip to content

feat: Refer Program terms move to affitor.com/legal/refer-program - #146

Merged
sonpiaz merged 1 commit into
mainfrom
docs/refer-terms-legal
Oct 16, 2026
Merged

sonpiaz merged 1 commit into
mainfrom
docs/refer-terms-legal

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Oct 16, 2026

Copy link
Copy Markdown
Member

What

The Affitor Refer Program terms now have one copy, on the dashboard at https://affitor.com/legal/refer-program (affiliate-dashboard#713, src/content/legal/refer-program.tsx). This PR removes the docs copy and points everything at the new page.

  • content/docs/partners/refer-program.mdx removed, and dropped from partners/meta.json.
  • src/middleware.ts: movedOut() sends /docs/partners/refer-program and its .md twin, on every host (and /partners/refer-program on docs.affitor.com), with a 301 to https://affitor.com/legal/refer-program, query kept. The dashboard has no .md twins (curl affitor.com/pricing.md = 404), so the twin lands on the page.
  • Links updated: partners/referral-rewards (intro, section 5 and 6 anchors now #self-referrals / #holds-and-payouts, the NextStep card), quickstart/get-your-referral-link, changelog entry refer-program.
  • quickstart/promote-your-link: the line "Refer other partners: earn from partners you bring in" was wrong (the Refer Program refers brands). It now reads "Refer a brand: earn from brands you bring to Affitor" and links to How referral rewards work.
  • Tests: unit cases in check-docs-host.mjs (docs host and every proxy host, twin, query) and end-to-end cases in check-docs-host-http.mjs.

Sources

  • Terms page and anchors: affiliate-dashboard PR #713 head f5e0acd, src/content/legal/refer-program.tsx (id: 'self-referrals', id: 'holds-and-payouts'), src/pages/legal/refer-program.tsx (PAGE_URL, canonical).
  • Dashboard links already moved: #713 src/config/referProgram.ts REFER_TERMS_URL = '/legal/refer-program'.

Merge gate

Merge only after affiliate-dashboard#713 is live: curl -s -o /dev/null -w '%{http_code}' https://affitor.com/legal/refer-program must be 200 (it is 404 before #713 deploys). Merging earlier would redirect the docs URL to a 404.

No terms wording changes here (the text moved as-is in #713). No media.

🤖 Generated with Claude Code

The terms now have one copy on the dashboard (dash#713). The docs page is
removed and /docs/partners/refer-program (and its .md twin, on every host)
redirects 301 to https://affitor.com/legal/refer-program. Links in
referral-rewards, get-your-referral-link and the changelog entry point there,
with the new section anchors. promote-your-link's 'Refer other partners'
line was wrong (the program refers brands) and now points at How referral
rewards work.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
affitor-docs Ready Ready Preview Oct 16, 2026 9:41pm UTC

Request Review

@sonpiaz
sonpiaz merged commit 862daff into main Oct 16, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — ddd2f91c Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant