cloudflare-worker-github-oauth-login icon indicating copy to clipboard operation
cloudflare-worker-github-oauth-login copied to clipboard

Cloudflare Site Value

Open stdavis opened this issue 6 years ago • 6 comments

When I sign up for a new Cloudflare account, what do I put in as a site domain? This seems to be required to get my zone Id. I didn't think that I needed to host a domain on Cloudflare as it is only used to host a service.

image

stdavis avatar Oct 22 '19 17:10 stdavis

Hm I'm not sure that is necessary when only using workers? But good that you bring that up, I should add it to the documentation. Can you get around it? If not, can you enter <your login>.workers.dev?

gr2m avatar Oct 22 '19 17:10 gr2m

Without CLOUDFLARE_ZONE_ID defined in secrets, I get this error message from serverless in the deploy action: image

As for adding my workers.dev as a site, it didn't like it either: image

stdavis avatar Oct 22 '19 17:10 stdavis

Hmmm I just entered martynus.net, one of my personal domains. Could you maybe ask support what they suggest to do?

gr2m avatar Oct 22 '19 17:10 gr2m

https://github.com/cloudflare/serverless-action/issues/3

stdavis avatar Oct 22 '19 18:10 stdavis

I wonder if this is the issue? https://github.com/cloudflare/serverless-cloudflare-workers/issues/36

This is what I got back from support:

If you only have a Workers subdomain on Cloudflare then you will not have a proper Zone ID. A workaround if you are trying to use Wrangler would be to set workers_dev = true in the TOML file so the wrangler does not look for an account ID when you deploy.

Does serverless use wrangler internally?

stdavis avatar Oct 22 '19 22:10 stdavis

I don't think so. I think serverless is a general-purpose tool for serverless apps, which includes a deploy commands, while wrangler is specific to CloudFlare.

gr2m avatar Oct 22 '19 23:10 gr2m