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

[🐛 Bug]: KV binding not working in local dev #854

Open
1 task
rohanrehman opened this issue Aug 7, 2024 · 1 comment
Open
1 task

[🐛 Bug]: KV binding not working in local dev #854

rohanrehman opened this issue Aug 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rohanrehman
Copy link

next-on-pages environment related information

NEXTjs 14.2.3 wrangler 3.69.1.

no errors in output or console, just "null" KV binding is fine in production.

Description

no errors in output or console, just "null"

Reproduction

No response

Pages Deployment Method

Direct Upload (wrangler pages publish or the @cloudflare/pages-action GitHub Action)

Pages Deployment ID

No response

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?
@rohanrehman rohanrehman added the bug Something isn't working label Aug 7, 2024
@rohanrehman rohanrehman changed the title [🐛 Bug]: KV not working in local dev [🐛 Bug]: KV binding not working in local dev Aug 7, 2024
@rohanrehman
Copy link
Author

Unless you are "putting" value to the local kv there is nothing to access.....
Dear Cloudflare team, may I suggest adding some kind of function that instantiated / reflects the remove KV object on the local dev machine?

As this is what most people will assume is what a "local KV binding is".

Furthermore, using next-on-pages is there a way to connect to the remote KV? There is no --remote flag on pages dev.
Your tooling refers to --remote on "wrangler dev" but any team working with your newer solution for a NEXTjs app will be using "wrangler pages dev" which is already causing a lot of assumption that flags will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant