Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for zoneless deployments (workers.dev only) #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davebarrau
Copy link

Hi,

I did a quick implementation to hopefully resolve #36.

I tested the following serverless.yml file, and was able to successfully deploy the worker just to my workers.dev subdomain:

The additional toggle I added was "zoneless: true/false" which automatically enables the workers.dev route - this can also be used for zone-based functions. I figured this might be useful so you don't have to go into the UI and toggle the worker on after deployment.

service: zone-test

frameworkVersion: '2'

provider:
  name: cloudflare
  config:
    accountId: <account id here>

plugins:
  - serverless-cloudflare-workers

functions:
  hello:
    name: hello
    zoneless: true
    script: helloWorld # there must be a file called helloWorld.js

Let me know if there's any issues!

@brianlellis
Copy link

Is there an update on when this will be merged into production. Seems legit in setting up prototyped systems not ready for investment as Cloudflare is very generous in daily request limits on the free tier.

@SunnyOswal
Copy link

any update on this ?

@vighnesh153
Copy link

vighnesh153 commented Apr 20, 2023

Not sure if this will ever get prioritized. Is it possible to offer this as a different plugin instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support workers.dev
4 participants