Skip to content
Snippets Groups Projects
config.js 240 B
Newer Older
  • Learn to ignore specific revisions
  • class Config {
      constructor () {
        this.BACKEND_URL = process.env.BACKEND_URL
        if (!this.BACKEND_URL.endsWith('/')) {
          this.BACKEND_URL += '/'
        }
        this.API_URL = this.BACKEND_URL + 'api/'
      }
    }
    
    export default new Config()