Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
config.js 325 B
import fs from 'fs/promises'
import yaml from 'js-yaml'

class Config {
  async load () {
    const urlsSource = await fs.readFile('./config/config.yaml', 'utf8')
    this._urls = yaml.load(urlsSource).baseUrls
  }

  get urls () {
    return this._urls || []
  }
}

export const config = new Config()

export default config