- Upload the app first (settings need to be registered):
npx devvit upload- Then set the API key:
npx devvit settings set apiKeyWhen prompted, enter: AIzaSyD6eIn0o6DH2yGD6GRqPzznN_D6rp4vpMI
- Done! The key is now stored and the app will use it.
Devvit.addSettings()insrc/server/index.tsregisters the setting- After upload, the setting becomes available
- CLI command stores it securely
- Code reads it from Redis at
config:gemini_api_key