Skip to content

Commit 27d15f5

Browse files
committed
dynamic node uri
1 parent bcb3080 commit 27d15f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var axios = require('axios');
22
axios.defaults.withCredentials = true; //used to send cookies tokens in request headers
3-
var nodeurl = 'http://localhost:3000';
3+
var nodeurl = process.env.NODE_URI || 'http://localhost:3000';
44

55
import api from '../utils/api'
66

0 commit comments

Comments
 (0)