We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1de345f commit 7a66b93Copy full SHA for 7a66b93
backend/main.py
@@ -10,9 +10,7 @@
10
# Check for production indicators
11
is_production = (
12
os.getenv("ENVIRONMENT") == "production"
13
- or os.getenv("GAE_APPLICATION") # Google App Engine
14
- or os.getenv("GOOGLE_CLOUD_PROJECT") # Google Cloud
15
- or os.getenv("K_SERVICE") # Google Cloud Run
+ or os.getenv("K_SERVICE") is not None # Google Cloud Run
16
)
17
18
if is_production:
0 commit comments