KWAC
Explore posts from serversCDCloudflare Developers
•Created by KWAC on 7/31/2024 in #d1-database
I'm using nuxt + drizzle orm +
I am running my Nuxt application locally, but it is configured to connect to a remote Cloudflare D1 database
2 replies
DTDrizzle Team
•Created by KWAC on 7/31/2024 in #help
quering with nuxt + drizzle + cloudflare D1
Here's a snippet from my signup.vue page making api call:
Data is not inserted into a table from api call. But from drizzle kit studio (using D1) I can modify data without problems. Am I doing something wrong here?
3 replies
DTDrizzle Team
•Created by KWAC on 7/31/2024 in #help
quering with nuxt + drizzle + cloudflare D1
my api (api/login/signup.post.js) looks like this:
3 replies
nuxt 3 + cloudfare D1 problems with env.d.ts file
@Oreki Sorry for pinging
I now setup it correctly using command
I was missing some files like Also I had to downgrade wrangler version because newer one was broken.
My drizzle config looks like this:
My question is how to query and receive data from a table? Mine doesn't really work. I have two entries in that table. It shows status 200 but it doens't really print out that info from table
getdata.js
22 replies
CDCloudflare Developers
•Created by KWAC on 7/30/2024 in #workers-help
Error after running command - npx wrangler pages deploy dist/ error happens
In the I used nitro-cloudfare-dev instead of cloudfare-pages but I suddenly started getting error with that (Cannot read properties of undefined (reading '$production'))
3 replies
CDCloudflare Developers
•Created by KWAC on 7/30/2024 in #workers-help
Error after running command - npx wrangler pages deploy dist/ error happens
here's my nuxt.config.js
3 replies
nuxt 3 + cloudfare D1 problems with env.d.ts file
Okay
But looking at this
import { CfProperties, Request, ExecutionContext, KVNamespace, D1Database } from '@cloudflare/workers-types';
declare module 'h3' {
interface H3EventContext {
cf: CfProperties,
cloudflare: {
request: Request,
env: {
MY_KV: KVNamespace,
DB: D1Database,
}
context: ExecutionContext,
};
}
}
am I declaring DB correctly?
22 replies