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

举报或申请下架