cloudflare / cloudflare/serverless-cloudflare-workers

Deploying a worker to additional Cloudflare routes

Open
#50 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
180
Forks
34
PR merge metrics
No merged PRs in 30d

Description

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.

```toml
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.