Is there a way to try D1 locally in, say, a Nuxt.js app in dev mode? I tried running `wrangler pages

Is there a way to try D1 locally in, say, a Nuxt.js app in dev mode? I tried running wrangler pages dev --proxy [nuxt dev server port] -- pnpm dev but the context.cloudflare and process.env.[DB_BINDING] don't seem to exist when I try to access them in defineEventHandler(). I read the documentation but I'm still not clear on how exactly to approach this. Any guidance or examples would be appreciated.
Was this page helpful?