Loading...
Loading...
Use when services need public URL for redirects or CORS. Use when WEB_URL or similar has trailing slash issues. Use when user reports "redirect goes to wrong URL", "CORS error", or "trailing slash problem". Also use when user says "add domain", "set up domain", "bind domain", "create domain", or "manage domains" for a Zeabur service.
npx skill4agent add zeabur/agent-skills zeabur-domain-urlAlways useto invoke Zeabur CLI. Never usenpx zeabur@latestdirectly or any other installation method. Ifzeaburis not available, install Node.js first.npx
${ZEABUR_WEB_URL}| Variable | Example | Note |
|---|---|---|
| | Has trailing slash |
| | Domain only, no protocol |
- name: entry-service
domainKey: PUBLIC_DOMAIN
spec:
env:
APP_URL:
default: https://${ZEABUR_WEB_DOMAIN}
expose: true
- name: backend
spec:
env:
WEB_URL:
default: ${APP_URL}https://${ZEABUR_WEB_DOMAIN}${ZEABUR_WEB_URL}npx zeabur@latest domain list --id <service-id> -i=false-g-g--domainnpx zeabur@latest domain create --id <service-id> -g --domain myapp -y -i=false
# Suffix is auto-appended by backend based on region:
# Default: myapp.zeabur.app
# Aliyun (China): myapp.preview.aliyun-zeabur.cn
# Tencent (China): myapp.preview.tencent-zeabur.cn
# Huawei (China): myapp.preview.huawei-zeabur.cn
# China suffixes require completed identity verification on Zeabur.DOMAIN_NAME_TOO_SHORTUNSUPPORTED_DOMAIN_NAME-g--domainnpx zeabur@latest domain create --id <service-id> --domain example.com -y -i=falsezeabur-domain-dnsnpx zeabur@latest server list -i=false
# Note the IP address of the server running your serviceType: A
Name: <your subdomain or @>
Value: <server IP from above>Do not guess DNS values. Always retrieve the actual server IP fromoutput before configuring DNS.server list
npx zeabur@latest domain delete --id <service-id> --domain <domain> -y -i=false--domainINVALID_DOMAIN_NAME-gmyappmyapp.zeabur.app-gexample.com