Explorar o código

Merge pull request #1417 from stephenatwell/develop

Make Base_URL Configurable
Ajay Tripathy %!s(int64=3) %!d(string=hai) anos
pai
achega
57a88019b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ui/src/services/allocation.js

+ 1 - 1
ui/src/services/allocation.js

@@ -1,7 +1,7 @@
 import axios from 'axios';
 
 class AllocationService {
-  BASE_URL = 'http://localhost:9090/allocation';
+  BASE_URL = process.env.BASE_URL || 'http://localhost:9090/allocation';
 
   async fetchAllocation(win, aggregate, options) {
     const { accumulate, filters, } = options;