Skip to content

Commit

Permalink
Add @deprecated annotation on functions.config() API
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Sep 5, 2024
1 parent c0b488a commit 44cdb19
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 Cloud Runtime Configuration API is discouraged. See https://firebase.google.com/docs/functions/config-env#migrating_from_environment_configuration
*/
export function config(): Record<string, any> {
// K_CONFIGURATION is only set in GCFv2
Expand Down

0 comments on commit 44cdb19

Please sign in to comment.