Domains

作者 get-convex6ca54f6e2e75Apache-2.06 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Wire a domain the user ALREADY OWNS (GoDaddy/Namecheap/Cloudflare/…) to their Convex app: exact DNS records, custom-domain attachment, auth-origin rebind. TRIGGER when the user owns a domain and wants it pointing at their app ('point my domain at this', 'use my own domain', 'set up example.com'). Never asks for registrar credentials.

僅含說明DevOps & Cloud
AI 產生的概覽

指導將使用者已有的網域接上 Convex 應用,包含精確 DNS 記錄、網域綁定與驗證來源重新綁定。

功能
此技能說明如何把使用者已擁有的網域指向其 Convex 應用。它會確認目標主機,提供需在註冊商建立的具体 CNAME 或根網域 A/ALIAS 記錄以及 TXT 驗證記錄,在 Convex 上綁定自訂網域,並在應用使用通行金鑰或 OAuth 時重新綁定驗證來源環境變數。最後驗證網域透過 HTTPS 提供服務以及根網域到 www 的重新導向。
適用情境
當使用者擁有網域並希望將其指向自己的 Convex 應用時使用,例如「使用我自己的網域」或「設定 example.com」。適用於自訂網域綁定以及搬移後的驗證來源修復。
執行需求
需要一個 Convex 應用與部署存取權(儀表板或 CLI,例如 npx convex env get CONVEX_SITE_URL),以及使用者在註冊商建立 DNS 記錄的權限。不會索取註冊商憑證。僅為說明文件,不含指令碼。

Custom domain with your own provider (/domains)

Point a domain the user already owns at their Convex app. No purchase, no registrar credentials — you give the user the exact records to create themselves.

Procedure

  1. Identify the target: the published site host (for static hosting) or the deployment's HTTP actions URL (npx convex env get CONVEX_SITE_URL or the dashboard).
  2. Give the exact DNS records to create at THEIR registrar: the CNAME (or A/ALIAS at the apex) plus the TXT verification record — concrete host/value strings, not placeholders.
  3. Attach the custom domain on Convex (dashboard → deployment → Custom Domains, or the CLI) and wait for verification. DNS propagation can take minutes to hours — tell the user, don't poll forever.
  4. If the app uses auth (passkeys/OAuth), rebind the auth origin (SITE_URL / RP_ID / ORIGIN env vars) to the new domain and re-deploy — otherwise sign-in breaks on the new domain.
  5. Verify: the domain serves the app over HTTPS, including the apex → www redirect if configured.

Rules

  • Never ask for registrar credentials — the user creates the records.
  • Always include the TXT verification record, not just the CNAME.
  • Rebinding the domain changes the auth origin — re-deploy after, or sign-in breaks.

來源與署名

來源:get-convex/convex-backend-skill位於skills/domains提交6ca54f6

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架