Hello, I'm trying to disable local mode so that I can access my production D1 instance via my Page

Hello,

I'm trying to disable local mode so that I can access my production D1 instance via my Pages Function.

I had originally expected there to just be the option to press l like when running workers in dev to disable this, but there isn't. This led me to discover the --local false flag. However, this doesn't do anything. I can see my binding is still referencing a local miniflare database.

When running npx wrangler pages dev public --local false I see:
Your worker has access to the following bindings:
- D1 Databases:
  - DB: database-name (database-id)
⎔ Starting local server...


Any ideas? Thanks
Was this page helpful?