serverless-cloudflare-workers icon indicating copy to clipboard operation
serverless-cloudflare-workers copied to clipboard

Support workers.dev

Open exvuma opened this issue 5 years ago • 6 comments

Integrate with the CF API for workers that do not live on zones

exvuma avatar May 09 '19 19:05 exvuma

Yes, this is not really helpful:

[{"code":7003,"message":"Could not route to /zones/undefined/workers/settings, perhaps your object identifier is invalid?"},{"code":7000,"message":"No route for that URI"}]

Hades32 avatar Aug 01 '19 21:08 Hades32

I really wish this would get added!

camhart avatar Apr 16 '20 18:04 camhart

Hi and first of all thanks for this great plugin! Do you have any even rough indication when this could possibly be added?

awthwathje avatar Nov 16 '20 16:11 awthwathje

first of all thanks for the framework :)

I am having the same issue here the cloudflare docs say we don't need a zone id for a "workers.dev" subdomain

but the serverless Cloudflare workers template and docs require a zone id

after I found out that there is no zone id for the workers.dev domain in Cloudflare workers (which would be what most beginners would try to use)

so I tried removing the zone id from the serverless.yml file I get an error message Could not route to /zones/undefined/workers/settings

you should at least add this issue to the Cloudflare part of the docs saying "Cloudflare workers.dev subdomains are not supported, and they do not have a zone id"

and I should state here that Cloudflare workers are the best provider in my opinion and serverless documentation is the first place I go to when starting to work on a service so please prioritize this issue

Thanks

shmuel-web avatar Nov 30 '20 09:11 shmuel-web

Hi I come from https://developers.cloudflare.com/workers/learning/integrations#serverless-framework which Cloudflare recommends Serverless framework. But it's shockingly that, as the info from https://www.serverless.com/framework/docs/providers/cloudflare/guide/quick-start, serverless doesn't support workers.dev. Or is there any updates I missed?

bluet avatar Nov 02 '21 04:11 bluet

first of all thanks for the framework :)

I am having the same issue here the cloudflare docs say we don't need a zone id for a "workers.dev" subdomain

but the serverless Cloudflare workers template and docs require a zone id

after I found out that there is no zone id for the workers.dev domain in Cloudflare workers (which would be what most beginners would try to use)

so I tried removing the zone id from the serverless.yml file I get an error message Could not route to /zones/undefined/workers/settings

you should at least add this issue to the Cloudflare part of the docs saying "Cloudflare workers.dev subdomains are not supported, and they do not have a zone id"

and I should state here that Cloudflare workers are the best provider in my opinion and serverless documentation is the first place I go to when starting to work on a service so please prioritize this issue

Thanks

Hi, If you were not able to user ur subdomain as a route, how did you solve the issue of zone_id?

saidybarry avatar Jul 23 '22 15:07 saidybarry