message: fail gracefully if sentry token is missing in localhost
diff: @@ -22,13 +22,19 @@ export async function createRouter(logger: Logger): Promise<express.Router> {
  const router = Router();
  const SENTRY_TOKEN = process.env.SENTRY_TOKEN;
  if (!SENTRY_TOKEN) {
  + if (process.env.NODE_ENV !== 'development') {
  throw new Error(
  'Sentry token must be provided in SENTRY_TOKEN environment variable to start the API.',
  );
  }
  + logger.warn(
  + 'Failed to initialize Sentry backend, set SENTRY_TOKEN environment variable to start the API.',
  + );
  + } else {
  const sentryForwarder = getSentryApiForwarder(SENTRY_TOKEN, logger);
  router.use(sentryForwarder);
  + }
  return router;
  }
  