Skip to content

Commit 4d9335f

Browse files
ErikMichelsonDerMolly
authored andcommitted
fix(healthcheck): remove invalid node-fetch import
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
1 parent c4d0532 commit 4d9335f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

resources/healthcheck.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import fetch from 'node-fetch'
2-
31
// Kill myself after 5 second timeout
42
setTimeout(() => {
53
process.exit(1)
64
}, 5000)
75

8-
fetch(`http://localhost:${process.env.CMD_PORT || '3000' }/_health`, {headers: { "user-agent": "hedgedoc-container-healthcheck/1.1"}}).then((response) => {
6+
fetch(`http://localhost:${process.env.CMD_PORT || '3000' }/_health`, {headers: { "user-agent": "hedgedoc-container-healthcheck/1.2"}}).then((response) => {
97
if (!response.ok) {
108
process.exit(1)
119
}

0 commit comments

Comments
 (0)