cloudflare-worker-github-oauth-login
cloudflare-worker-github-oauth-login copied to clipboard
Cloudflare Site Value
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.

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?
Without CLOUDFLARE_ZONE_ID defined in secrets, I get this error message from serverless in the deploy action:

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

Hmmm I just entered martynus.net, one of my personal domains. Could you maybe ask support what they suggest to do?
https://github.com/cloudflare/serverless-action/issues/3
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?
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.