Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Create a dev server #845

Closed
EverlastingBugstopper opened this issue Nov 5, 2019 · 1 comment · Fixed by #883
Closed

Create a dev server #845

EverlastingBugstopper opened this issue Nov 5, 2019 · 1 comment · Fixed by #883
Assignees
Labels
feature Feature requests and suggestions
Milestone

Comments

@EverlastingBugstopper
Copy link
Contributor

EverlastingBugstopper commented Nov 5, 2019

This issue is meant to be a summary of everything associated with this milestone - for more detailed information, please look at the issues and PRs listed there.

The overarching goal is to create a "local" development environment for Workers that only requires an Internet connection. Expose the server on a configurable IP and port, and take care of uploading the script to the preview service and sending the necessary authentication headers.

This feature will proxy requests to rawhttp.cloudflareworkers.com and future work will be built on top of how this service is currently implemented.

The proxy will need to mimic what the UI does:

The proxy will depend on the following endpoints:

  1. https://rawhttp.cloudflareworkers.com
  2. https://api.cloudflare.com/client/v4/accounts/{}/workers/scripts/{}/preview
  3. https://cloudflareworkers.com/script
@EverlastingBugstopper EverlastingBugstopper added feature Feature requests and suggestions status - work in progress labels Nov 5, 2019
@EverlastingBugstopper EverlastingBugstopper self-assigned this Nov 5, 2019
@EverlastingBugstopper EverlastingBugstopper added this to the Preview Proxy milestone Nov 5, 2019
@EverlastingBugstopper EverlastingBugstopper changed the title Create a proxy to the preview service Create a dev server Dec 6, 2019
@jaymakes11
Copy link

A big +1 for this, especially now that https://github.com/dollarshaveclub/cloudworker is no longer actively maintained.

Unfortunately, for now, the absence of a clean and workable local development story with Cloudflare Workers is preventing me from using it. Even though not actively maintained, I tried getting a workable story together with https://github.com/dollarshaveclub/cloudworker and it nearly got me there, but it not supporting cookie headers (dollarshaveclub/cloudworker#121) is a show stopper. Does anyone have a workable approach for this (a clean and sensible local development story with Cloudflare Workers)?

Something like Netlify Dev for Cloudflare Workers would be sweet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature requests and suggestions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants