продакшн на нормальном порте
This commit is contained in:
parent
5d58695c65
commit
91f066ae61
@ -4,7 +4,7 @@ import './router';
|
|||||||
import PagesPie from './pages-pie.js';
|
import PagesPie from './pages-pie.js';
|
||||||
|
|
||||||
var io = require("socket.io-client");
|
var io = require("socket.io-client");
|
||||||
window.torrentSocket = io('http://' + document.location.hostname + ':8095/');
|
window.torrentSocket = io('http://' + document.location.hostname + (process.env.NODE_ENV === 'production' ? '/' : ':8095/'));
|
||||||
|
|
||||||
import injectTapEventPlugin from 'react-tap-event-plugin';
|
import injectTapEventPlugin from 'react-tap-event-plugin';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user