Skip to content

Commit 7a66b93

Browse files
ChingEnLinCopilot
andauthored
Update backend/main.py
Co-authored-by: Copilot <[email protected]>
1 parent 1de345f commit 7a66b93

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
# Check for production indicators
1111
is_production = (
1212
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
13+
or os.getenv("K_SERVICE") is not None # Google Cloud Run
1614
)
1715

1816
if is_production:

0 commit comments

Comments
 (0)