Skip to content

Commit

Permalink
Add @deprecated annotation on functions.config() API (#1604)
Browse files Browse the repository at this point in the history
* Add @deprecated annotation on functions.config() API

* Nit.
  • Loading branch information
taeold authored Sep 9, 2024
1 parent d65d35f commit e95b9ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v1/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export function resetCache(): void {
* keys or other settings. You can set configuration values using the
* Firebase CLI as described in
* https://firebase.google.com/docs/functions/config-env.
*
* @deprecated Using functions.config() is discouraged. See https://firebase.google.com/docs/functions/config-env.
*/
export function config(): Record<string, any> {
// K_CONFIGURATION is only set in GCFv2
Expand Down

0 comments on commit e95b9ef

Please sign in to comment.