n00b Q: wrangler / pages d1 env Qs

hello all, attempting to get next-on-pages dev env working with d1,

  1. i realized it's defaulting to local, but i am unable to pass the --remote flag, as it throws an error saying its unrecognized:
pgrep workerd | xargs kill && npx wrangler pages dev .vercel/output/static --kv=MY_KV --d1=test --remote --compatibility-flag=nodejs_compat


✘ [ERROR] Unknown argument: remote


i think its because this is
wrangler pages dev
and not
wrangler dev
, but in pages it states to use --local, i tried that as well and it just defaults to local anyway:

> pgrep workerd | xargs kill && npx wrangler pages dev .vercel/output/static --local=false --kv=MY_KV --d1=test --compatibility-flag=nodejs_compat

wrangler dev now uses local mode by default, powered by πŸ”₯ Miniflare and πŸ‘· workerd.
To run an edge preview session for your Worker, use wrangler dev --remote
Your worker has access to the following bindings:
- KV Namespaces:
  - MY_KV: MY_KV
- D1 Databases:
  - test: local-test (test)


  1. i also realized when i use wrangler commands its defaulting to cloud/non local so i was getting confused between the two envs, how do i set wrangler to target pages-dev env? there doesn't appear to be a --local flag for the d1 commands, also doesn't appear to be a port flag to target the local 8788 env created by pages dev
wrangler --version
 ⛅️ wrangler 3.5.1


not sure if this should go here, in wrangler, or in d1, if anyone has any suggestions super open or if there is a part of the docs i missed please do not hesitate to let me know!
Was this page helpful?