Secret Store In Local Dev Mode?
I am using the new Secrets Store, and using them in a worker using the binding in the toml file, but in dev mode using
npx wrangler dev
the console shows :
Secret "MDB_URI" not found
Well Okay the docs say :
Local development mode
This guide assumes you are working in production. To use Secrets Store locally, you must use secrets-store secret Wrangler commands without the --remote flag.
Well If I follow that it says :
--remote
option
In order to interact with Secrets Store in production, you should append --remote to your command. Without it, your command will default to local development mode.
Okay so all I want is the npx wrangler to use my remote secret store?1 Reply
Okay so using the --remote flag like npx wrangler dev does use my remote SECRETS STORE bindings, but has a sideeffect of not logging any console.log in my local dev console... so back to use my local secret store -- how do i do that, is there a fall back for using the .dev.vars -- the docs arent clear how exactly to use SECRETS STORE locally?