cloudflare / next-on-pages

CLI to build and develop Next.js apps for Cloudflare Pages
https://www.npmjs.com/package/@cloudflare/next-on-pages
MIT License
1.24k stars 119 forks source link

🐛 BUG: KV local dev broken for Nextjs. #861

Open rohanrehman opened 1 month ago

rohanrehman commented 1 month ago

Which Cloudflare product(s) does this pertain to?

KV

What version(s) of the tool(s) are you using?

Wrangler C3 , Nextjs 14.2.3

What version of Node are you using?

3.69.1

What operating system and version are you using?

Mac OS Monterey 12.7.6

Describe the Bug

Following documented methods as described on cloudflared docs. KV bindings work when deployed.

Values displayed as null when running locally using wrangler cli or next dev (next dev as documented being the preferred method)

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

Return is null and no error logs

rameardo commented 1 month ago

Could you please share your code so that I can help you troubleshoot it?

lrapoport-cf commented 4 weeks ago

hi @rohanrehman :) this probably makes more sense as an issue on https://github.com/cloudflare/next-on-pages so moving it there -- @dario-piotrowicz can you take a look? in the meantime, @rohanrehman are you able to provide a reproduction?