Cloudflare Pages + NextJS: Access KV-Store in getServerSideProps

Hi,

I’m wondering if it is somehow possible to access a KV Namespace binding when doing SSR by doing getServerSideProps for NextJs using the Edge Runtime. If yes, could someone provide me with an example.

Thanks and best regards

You can’t at this time. The following issue is tracking this:

Honestly though, next-on-pages itself is in a state right now that I couldn’t personally recommend it due to lack of maintenance and support, and would encourage you to consider an alternate solution like Netlify or Vercel for your project if you need a quick resolution.

Ah, “good” to know. Thanks for the fast reply :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.