Skip to content

Commit

Permalink
config: use window.location to get API URL
Browse files Browse the repository at this point in the history
* Avoid hardcoding URL API (closes #90).
  • Loading branch information
Diego Rodriguez committed Apr 15, 2020
1 parent 2e6ccbc commit be42a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reana-ui/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

const config = {
name: "CERN REANA UI",
api: "https://reana.cern.ch",
api: window.location.origin,
poolingSecs: 15,
docsURL: "http://docs.reana.io/",
forumURL: "https://forum.reana.io/",
mattermostURL: "https://mattermost.web.cern.ch/it-dep/channels/reana"
mattermostURL: "https://mattermost.web.cern.ch/it-dep/channels/reana",
};

export default config;

0 comments on commit be42a5d

Please sign in to comment.