sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.07k stars 118 forks source link

Cloudflare account ID is required for Cloudflare DNS setup #520

Open alfredsgenkins opened 2 weeks ago

alfredsgenkins commented 2 weeks ago

The following doc: https://ion.sst.dev/docs/custom-domains/ quotes the following requirements for DNS setup:

Set the CLOUDFLARE_API_TOKEN in your environment.

While in reality the following tokens are required:

Set the CLOUDFLARE_API_TOKEN and CLOUDFLARE_DEFAULT_ACCOUNT_ID in your environment. I believe this is related to: https://github.com/sst/ion/issues/387

ding-si-han commented 2 weeks ago

+1 to this, faced the same issue and adding CLOUDFLARE_DEFAULT_ACCOUNT_ID fixed it