Cloudflare DevelopersCD
Cloudflare Developers2y ago
3 replies
sv._.342

how can i query D1 in cloudflare without deploy?

im quering D1 database with Functions
but it seems query in local..
how can i query on remote without deploy?

i started dev server with 'npm run pages:dev'
"pages:dev": "wrangler pages dev --d1 DB=<KEY>

i searched simillar thing but not helps to me
https://www.answeroverflow.com/m/1146485356917690450
'npx wrangler dev' has --remote options but
'npx wrangler pages dev' has no --remote options..
Hello, I have a project that uses D1 and wrangler, so I generate the schema with drizzle, and then run apply my migrations to my database, I also confirmed that the id in my wrangler.toml is correct and the tables do exist on the D1 dashboard, confirmed the same thing with the CLI as well, but..... when I run
wrangler dev
and head to the serv...
"D1_ERROR: SqliteError: no such table" - Cloudflare Developers
Was this page helpful?