UNPKG
@ert78gb/fastify-google-cloud-run-options
Version:
latest (3.0.2)
3.0.2
3.0.1
3.0.0
2.0.1
2.0.0
1.1.1
1.1.0
1.0.0
Fastify Google Cloud Run configuration
github.com/ert78gb/fastify-google-cloud-run-options
@ert78gb/fastify-google-cloud-run-options
/
lib
/
helpers
/
is-google-cloud-run.js
6 lines
(4 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
// Cloud Run set the service name in the K_SERVICE environment variable
// If you want to simulate the Cloud Run environment then set the K_SERVICE
const
IS_GOOGLE_CLOUD_RUN
= process.
env
.
K_SERVICE
!==
undefined
export
default
IS_GOOGLE_CLOUD_RUN