'use strict';

const apiEngine = require('../index');

// eslint-disable-next-line fp/no-mutation
Error.stackTraceLimit = 100;

const startServer = async function () {
  try {
    const { options, servers, exit } = await apiEngine.run();
    return { options, servers, exit };
  } catch (error) {
    // eslint-disable-next-line no-console, no-restricted-globals
    console.log(error);
  }
};

startServer();

'use strict';

const apiEngine = require('../index');

// eslint-disable-next-line fp/no-mutation
Error.stackTraceLimit = 100;

const startServer = async function () {
  try {
    await apiEngine.compile();
    const { options, servers, exit } = await apiEngine.run();
    return { options, servers, exit };
  } catch (error) {
    // eslint-disable-next-line no-console, no-restricted-globals
    console.log(error);
  }
};

startServer();

Add compile-step to debug flow
Add compile-step to debug flow
