#!/usr/bin/env node

const got = require('got');

const { HEALTH_URL, SPACEX_WORKER } = process.env;

(async () => {
  try {
    if (SPACEX_WORKER === true) {
      process.exit(0);
    }
    await got(HEALTH_URL);
    process.exit(0);
  } catch (error) {
    console.log(error.message);
    process.exit(1);
  }
})();

@@ -143,17 +143,8 @@
 RKER
- === true
 ) %7B%0A

tweak healthcheck for worker process