KWAC
Explore posts from serversnuxt 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
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