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

Guidance for reading KV (etc) bindings locally #321

Closed
1 task
timfee opened this issue Jun 21, 2023 · 3 comments
Closed
1 task

Guidance for reading KV (etc) bindings locally #321

timfee opened this issue Jun 21, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@timfee
Copy link

timfee commented Jun 21, 2023

Description

Hi there,

I noticed that the docs advise running build (watch) + serve for local development, but I wasn’t sure if this pattern was suitable for HMR-enabled fast, next dev-esque development locally.

In particular, I was looking to get the values from KV passed into the instance with low overhead.

Additional Information

I was considering a monorepo pattern but it seemed like a lot of headache / overkill - so wanted to see if I was missing something obvious or if folks have approached this in other ways :)

Would you like to help?

  • Would you like to help implement this feature?
@timfee timfee added the enhancement New feature or request label Jun 21, 2023
@james-elicx
Copy link
Contributor

Hey there, thanks for bringing this up. It's actually an area that we are actively exploring and looking at.

At the moment, the only way to access bindings is through our watch mode. Sadly, this means that we have to do a full build of the application and it loses out on the fast HMR that next dev has 🙁.

One of the alternatives that we're exploring is an experimental proxy that would enable access to bindings during local development. However, there are conflicting opinions within the team at Cloudflare on how best to proceed, so it's currently on hold.

There is another issue (#271) open where we are tracking this feature request. I kindly ask that you consider sharing more information about your use case, the problems you are currently facing, and how you would prefer interacting with bindings in next dev, over in that thread.

@dario-piotrowicz
Copy link
Member

Thanks a lot for the issue @timfee 🙂

As James said this is unfortunately an existing pain point which we most definitely need to address 😓, I'm sorry about it, I hope we can make the situation better soon

I'm closing the issue as it is a duplicate of #271 and it's better to keep all conversation centralized there, I hope you don't mind 🙂

@dario-piotrowicz dario-piotrowicz closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2023
@rohanrehman
Copy link

rohanrehman commented Aug 7, 2024

This should be revisited as KV bindings are not working when running locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants