Ability to deploy and run Workers-for-Platforms scripts fully-locally with wrangler #13226
dmaretskyi
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the solution
Problem
We are using Workers-for-Platforms (W4P) in our project, where users write scripts and deploy them via either our web app.
Currently, the workflow looks like this:
This works fine in production, but testing locally is very difficult:
--dispatch-namespaceargument.We would like to run this entire workflow locally:
Motivation
Proposed Solution
Introduce a way to deploy Workers-for-Platforms scripts fully locally via Wrangler.
For example:
DispatchNamespace.deploy()that:Code snippet:
When deployed to a production environment this would use the "upload script to Dispatch Namespace API" and when running locally this would upload the worker modules to a locally running instance of
workerd.Considerations
Beta Was this translation helpful? Give feedback.
All reactions