Skip to content

Commit e95b9ef

Browse files
authored
Add @deprecated annotation on functions.config() API (#1604)
* Add @deprecated annotation on functions.config() API * Nit.
1 parent d65d35f commit e95b9ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v1/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export function resetCache(): void {
3838
* keys or other settings. You can set configuration values using the
3939
* Firebase CLI as described in
4040
* https://firebase.google.com/docs/functions/config-env.
41+
*
42+
* @deprecated Using functions.config() is discouraged. See https://firebase.google.com/docs/functions/config-env.
4143
*/
4244
export function config(): Record<string, any> {
4345
// K_CONFIGURATION is only set in GCFv2

0 commit comments

Comments
 (0)