Sylphritz
Sylphritz
Explore posts from servers
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
I wish there was a way to connect to all Cloudflare services directly using some sort of access key like R2 instead of this roundabout way through Wrangler. It's super annoying 😦
27 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
For R2, you can just connect to it using AWS S3 SDK. It's much easier
27 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
Yeah, there's no way to make it work while running a dev server. You could try building the project with NITRO_PRESET=cloudflare flag and then run it via Wrangler.
27 replies
CDCloudflare Developers
Created by keko92 on 7/23/2023 in #pages-help
Unable to use @aws-sdk/client-s3 in Nuxt 3 Pages
Any update on this? I'm facing the exact same error when trying to deploy an app that uses @aws-sdk/client-s3 to connect to R2 on Pages
9 replies
CDCloudflare Developers
Created by Sylphritz on 9/19/2023 in #pages-help
Is there a way to connect to D1 locally in, say, a Nuxt.js app in dev mode?
Sorry, I don't really know. I'm still very new to D1 so I've only been messing around and do everything manually.
27 replies