Source

server/publisher-config.js

  1. /**
  2. * This namespace exposes a the publisher config from publisher.yml
  3. * ```javascript
  4. * import config from "@quintype/framework/server/publisher-config";
  5. *
  6. * config["sketches_host"]
  7. * ```
  8. * @category Server
  9. * @module publisher-config
  10. */
  11. // istanbul ignore file
  12. const fs = require("fs");
  13. const yaml = require("js-yaml");
  14. const publisher = yaml.load(fs.readFileSync("config/publisher.yml"));
  15. module.exports = publisher;