im a n00b so don't quote me, but you should absolutely be able to access KV/D1 in a server component

im a n00b so don't quote me, but you should absolutely be able to access KV/D1 in a server component,

not sure why your setup is undefined, but i think you need to create a KV from local wrangler as well? could be totally wrong and/or maybe you already did this

in terms of
wrangler.toml
i believe the maintainer has a PR for that https://github.com/cloudflare/next-on-pages/pull/648 that will allow it to to be used seamlessly, there is an earlier chat where he describes it in this channel,

anyways others who are more knowledgable may be able to help more if you haven't already figured it out
GitHub
Example/Demo app showing the usage of this new implementation: https://github.com/dario-piotrowicz/next-on-pages-next-dev-get-bindings-proxy-test-demo

fixes #623
fixes #634 (by shifting the issue ...
Was this page helpful?