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 从公开仓库中收录这些内容。

举报或申请下架