Convex Domains

作者 get-convex2cfe645c87f9無授權條款63 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫6 天前更新

Point a domain you already own at your Convex app (DNS records, custom-domain attach, auth-origin rebind).

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

引導將使用者自有網域透過 DNS 記錄、自訂網域綁定與驗證來源重新綁定指向 Convex 應用程式。

功能
引導辨識 Convex 託管網站或部署目標,建立所需的 CNAME(或根網域的 A/ALIAS)以及 TXT 驗證記錄,並將網域綁定為 Convex 自訂網域。它可選用使用者本機已驗證的服務商 CLI(Cloudflare、Route53、Google Cloud DNS、DigitalOcean、Vercel)自動建立記錄,或明確告知使用者在註冊商端應新增的具體記錄。若應用程式使用驗證,則重新綁定驗證來源環境變數並重新發佈,最後驗證 HTTPS 服務與根網域到 www 的重新導向。
適用情境
當使用者擁有網域並希望以它取代預設 Convex 主機來存取其 Convex 應用程式時使用。也適用於需要建立或核驗 DNS 記錄,或因網域變更需重新綁定驗證來源以確保登入正常的情況。
執行需求
僅為說明文件,不含指令碼。需要已發佈的 Convex 網站主機或部署的 HTTP actions URL,以及使用者 DNS 服務商的存取權限(註冊商或本機已驗證的 CLI,如 flarectl、aws、gcloud、doctl、vercel)。DNS 查詢與驗證需要網路存取;不得索取或分享註冊商憑證。
<!-- GENERATED from convex-agents content/capabilities/domains.json — do not edit by hand. -->

Set up a custom domain with your own provider

Walk the user's own registrar through pointing their domain at the Convex app: identify the target (hosting or deployment URL), create the DNS records, attach the custom domain, and rebind the auth origin if the app uses auth.

Workflow

  1. Identify the target: the published site host (for *.convex.app static hosting) or the deployment's HTTP actions URL.
  2. Detect an ALREADY-AUTHENTICATED DNS CLI for the user's provider and OFFER to create the records automatically: Cloudflare → flarectl dns create (note: wrangler itself doesn't manage DNS records) or the CF API via their token env; Route53 → aws route53 change-resource-record-sets; Google Cloud DNS → gcloud dns record-sets create; DigitalOcean → doctl compute domain records create; Vercel DNS → vercel dns add. Check auth read-only first (flarectl user info / aws sts get-caller-identity / doctl account get); show the exact commands and get a yes before running.
  3. If no authed CLI (or the user declines), tell the user exactly which records to create at THEIR registrar: the CNAME (or A/ALIAS at the apex) plus the TXT verification record — with concrete host/value strings, not placeholders.
  4. Attach the domain as a Convex custom domain (dashboard or CLI) and wait for verification; note DNS propagation can take minutes to hours. Verify records landed with dig +short.
  5. 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/re-publish.
  6. Verify: the domain serves the app over HTTPS, including the apex → www redirect if configured.

Rules

  • Never ask for or handle registrar credentials. A CLI already authenticated on the user's machine is fine — the credential stays in the tool; never install a CLI or run its login/auth flow for this, and never echo tokens.
  • DNS changes on a live domain are user-visible: show the exact commands and confirm before running them; verify afterwards with dig.
  • Always include the TXT verification record, not just the CNAME.
  • Rebinding the domain changes the auth origin — re-publish after, or sign-in breaks.

來源與署名

來源:get-convex/agent-skills位於skills/convex-domains提交2cfe645

授權條款: 無授權條款

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

檢舉或申請下架