**Need help using KV with next-on-pages
Need help using KV with next-on-pages
I've spend several hours trying to access KV in dev environment in my Next.js Project using next-on-pages.
Setup:
- I'm using next@14.0.0, @cloudflare/next-on-pages@1.7.2
- Installed
- Run
- Run
Below is the route in /app dir
When I try getting the value from CLI, it works:
---
- I've also tried using a wrangler.toml file with the kv details specificed
- I've also checked the below repos to see what they are doing different
https://github.com/looks-to-me/looks-to-me
https://github.com/james-elicx/cloudy
https://github.com/Rei-x/next-on-cloudflare-example
What am I doing wrong? I'd really appreciate any help
I've spend several hours trying to access KV in dev environment in my Next.js Project using next-on-pages.
Setup:
- I'm using next@14.0.0, @cloudflare/next-on-pages@1.7.2
- Installed
cf-bindings-proxy from @James - Run
npx cf-bindings-proxy --kv=MY_KV_NAMESPACE from Terminal 1- Run
next dev from Terminal 2Below is the route in /app dir
When I try getting the value from CLI, it works:
---
- I've also tried using a wrangler.toml file with the kv details specificed
- I've also checked the below repos to see what they are doing different
https://github.com/looks-to-me/looks-to-me
https://github.com/james-elicx/cloudy
https://github.com/Rei-x/next-on-cloudflare-example
What am I doing wrong? I'd really appreciate any help
