@@ -27,7 +27,7 @@ import findPage from './find-page.js'
27
27
import blockRobots from './block-robots'
28
28
import archivedEnterpriseVersionsAssets from '@/archives/middleware/archived-enterprise-versions-assets'
29
29
import api from './api'
30
- import healthz from './healthz '
30
+ import healthcheck from './healthcheck '
31
31
import manifestJson from './manifest-json'
32
32
import buildInfo from './build-info'
33
33
import reqHeaders from './req-headers'
@@ -66,16 +66,14 @@ import shielding from '@/shielding/middleware'
66
66
import tracking from '@/tracking/middleware'
67
67
import { MAX_REQUEST_TIMEOUT } from '@/frame/lib/constants.js'
68
68
69
- const { DEPLOYMENT_ENV , NODE_ENV } = process . env
69
+ const { NODE_ENV } = process . env
70
70
const isTest = NODE_ENV === 'test' || process . env . GITHUB_ACTIONS === 'true'
71
71
72
72
// By default, logging each request (with morgan), is on. And by default
73
73
// it's off if you're in a production environment or running automated tests.
74
74
// But if you set the env var, that takes precedence.
75
75
const ENABLE_DEV_LOGGING = Boolean (
76
- process . env . ENABLE_DEV_LOGGING
77
- ? JSON . parse ( process . env . ENABLE_DEV_LOGGING )
78
- : ! ( DEPLOYMENT_ENV === 'azure' || isTest ) ,
76
+ process . env . ENABLE_DEV_LOGGING ? JSON . parse ( process . env . ENABLE_DEV_LOGGING ) : ! isTest ,
79
77
)
80
78
81
79
const ENABLE_FASTLY_TESTING = JSON . parse ( process . env . ENABLE_FASTLY_TESTING || 'false' )
@@ -120,7 +118,7 @@ export default function (app: Express) {
120
118
// Put this early to make it as fast as possible because it's used,
121
119
// and used very often, by the Azure load balancer to check the
122
120
// health of each node.
123
- app . use ( '/healthz ' , healthz )
121
+ app . use ( '/healthcheck ' , healthcheck )
124
122
125
123
// Must appear before static assets and all other requests
126
124
// otherwise we won't be able to benefit from that functionality
0 commit comments