Secrets Store in local dev mode? How to
Secrets Store in local dev mode? How to expose them to wrangler dev (without passing them in using a flag) ?
npx wrangler dev --remote
~ this uses remote code and remote store
npx wrangler dev
-- this uses local code but errors becuase it cant find local secrets store (even with wrangler.toml bindings)
npx wrangler dev secrets-store secret
-- do i need to pass in the secrets here manually?3 Replies
Were you able to solve this?
Also running into this problem
Solved.
Solved : you need to use npx wrangler secrets-store secret create <STOREid> --name <VAR_NAME> --scopes workers --value "DB SECRET HERE" -- now this should create a local secret store (without using the --remote flag, otherwise it may overwrite your real secrets store.. now this will not use your .dev.env which is far better.. the only issue i see is that you may need to run this everytime.