You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/src/common/environment.dart
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,28 @@ class FirebaseEnv {
87
87
///
88
88
/// Uses the [PORT] environment variable, defaulting to 8080.
89
89
intget port =>int.tryParse(environment['PORT'] ??'8080') ??8080;
90
+
91
+
/// The name of the Cloud Run service.
92
+
///
93
+
/// Uses the `K_SERVICE` environment variable.
94
+
///
95
+
/// See https://cloud.google.com/run/docs/container-contract#env-vars
96
+
String?get kService => environment['K_SERVICE'];
97
+
98
+
/// The name of the target function.
99
+
///
100
+
/// Uses the `FUNCTION_TARGET` environment variable.
101
+
///
102
+
/// See https://docs.cloud.google.com/run/docs/configuring/services/environment-variables#additional_reserved_environment_variables_when_deploying_functions
0 commit comments