From 520ec929bde2c2d12e96a7a53e2dc64df5e4fc4f Mon Sep 17 00:00:00 2001 From: Brian Li Date: Tue, 18 Jul 2023 13:27:13 -0400 Subject: [PATCH 1/3] enable preferRest option by default --- src/functions/env.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions/env.ts b/src/functions/env.ts index b640aff443e..92cc4f19492 100644 --- a/src/functions/env.ts +++ b/src/functions/env.ts @@ -410,5 +410,6 @@ export function loadFirebaseEnvs( return { FIREBASE_CONFIG: JSON.stringify(firebaseConfig), GCLOUD_PROJECT: projectId, + FIRESTORE_PREFER_REST: "true", }; } From 6ca981c601e80d9d4c38be21fe481ac569bb3b9c Mon Sep 17 00:00:00 2001 From: Brian Li Date: Tue, 18 Jul 2023 13:28:58 -0400 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22a2c154878..b221aad54b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- Enable preferRest option by default for Firestore functions. (#6147) - Fixed bug where `functions:secrets:set` didn't remove stale versions of a secret. (#6080) - Fixed bug where `firebase deploy --only firestore:named-db` didn't update rules. (#6129) - Fixed issue where Flutter Web is not detected as a web framework. (#6085) From 9094673e558ba66a4c94bcfa72bd1dc8eb12cdc3 Mon Sep 17 00:00:00 2001 From: blidd-google <112491344+blidd-google@users.noreply.github.com> Date: Tue, 18 Jul 2023 14:34:47 -0400 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Jeff <3759507+jhuleatt@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b221aad54b4..2933cf4074b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -- Enable preferRest option by default for Firestore functions. (#6147) +- Enable [preferRest](https://firebase.google.com/docs/reference/admin/node/firebase-admin.firestore.firestoresettings.md#firestoresettingspreferrest) option by default for Firestore functions. (#6147) - Fixed bug where `functions:secrets:set` didn't remove stale versions of a secret. (#6080) - Fixed bug where `firebase deploy --only firestore:named-db` didn't update rules. (#6129) - Fixed issue where Flutter Web is not detected as a web framework. (#6085)