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

Deploying a worker to additional Cloudflare routes #50

Open
drewdecarme opened this issue Apr 7, 2020 · 0 comments
Open

Deploying a worker to additional Cloudflare routes #50

drewdecarme opened this issue Apr 7, 2020 · 0 comments

Comments

@drewdecarme
Copy link

When using Cloudflare's wrangler tool to deploy workers, we have the ability to define the route at which it's deployed. This is extremely helpful to deploy your workers at routes that you specify rather than at the workers.dev subdomain.

Take this wrangler.toml file below. We can define the route at where it gets deployed.

name = "worker-prod"
type = "webpack"
account_id = "youraccountid"
zone_id = "yourzoneid"
route = "https://api.example.com/*"

From what I can tell after reading serverless plugin documentation, there isn't a way to define the route at where your worker is deployed. Am I missing something or does this functionality just not exist.

This is stopping me from using the Serverless Framework as it doesn't seem like there is much parity between what wrangler offers and what the plugin is able to interface

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

No branches or pull requests

1 participant