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

Local development is hard when using KV #7

Open
kristianfreeman opened this issue May 21, 2020 · 0 comments
Open

Local development is hard when using KV #7

kristianfreeman opened this issue May 21, 2020 · 0 comments

Comments

@kristianfreeman
Copy link
Owner

Currently, gatsby develop is fairly limited, because all the data for the application comes from KV. Running wrangler dev works, but you need to run gatsby build repeatedly as you're changing code. I'd like to set up either a live-reloading process, or have gatsby develop be able to:

  1. recognize it's in a development mode
  2. route requests to localhost:8787 (locally running instance of the Workers application)

A temporary solution to this has been taking the JSON blob from my wallets key and copying it into the components manually, in order to play with the data as it exists on the edge. This isn't a great solution (and I've accidentally committed it a few times, oops)

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

No branches or pull requests

1 participant