Skip to content
Permalink
Browse files

Use ENV variables when possible or if not set, use the development ones.

  • Loading branch information...
alexventuraio committed Apr 16, 2019
1 parent cc55580 commit efa7285ed78a0d7ffd411695e271f39c8a1a3974
Showing with 2 additions and 2 deletions.
  1. +2 −2 todolist-react/src/utils/constants.js
@@ -1,5 +1,5 @@
export const API_ROOT = 'https://todolist-app-cable.herokuapp.com';
export const API_WS_ROOT = 'wss://todolist-app-cable.herokuapp.com/cable';
export const API_ROOT = process.env.REACTAPP_API_ROOT || 'http://localhost:3000';
export const API_WS_ROOT = process.env.REACTAPP_WS_ROOT || 'ws://localhost:3000/cable';
export const HEADERS = {
'Content-Type': 'application/json',
Accept: 'application/json',

0 comments on commit efa7285

Please sign in to comment.
You can’t perform that action at this time.