Skip to main content
Feature ID: PF-77
Status: 📝 Specification
Spec: PF-77-tenant-domain-management.md
Last Updated: 2026-03-13

Overview

PF-77 adds tenant-scoped custom domain lifecycle (add, verify, SSL, activate, remove) with persistence in pf_tenant_domains and backend/edge calls to Vercel project-domain APIs. It defines canonical host policy (apex vs www; subdomain vs custom domain) and integrates with PF-01 (organizations) and PF-74 (path-based routing).

Integration Points (from Spec)


Platform Layer Usage

  • Organizations: Domain list and add/remove are scoped by organization_id; RLS uses pf_has_org_access and pf_is_org_admin.
  • Edge/backend: tenant-domain-manage (or equivalent) calls Vercel SDK/API when VERCEL_TOKEN is set; persists status and errors in pf_tenant_domains.

Event / API Contracts

No new platform event contracts. External API: Vercel project-domain APIs (add, verify, get, remove). Internal: Edge function invoked by org settings UI for add, verify, status refresh, remove.