Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Commit

Permalink
Fix WSS route (#904)
Browse files Browse the repository at this point in the history
* Fix routes for direct access to server

* Update version
  • Loading branch information
dwalintukan authored Aug 23, 2018
1 parent 28e28c5 commit 55cdc48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bodhi-ui",
"version": "1.0.2",
"version": "1.0.3",
"dependencies": {
"@material-ui/core": "^1.2.2",
"@material-ui/icons": "^1.1.0",
Expand Down
8 changes: 4 additions & 4 deletions src/network/routes.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { isProduction } from '../config/app';

const PORT = 8989;
const AUTHORITY = isProduction() ? `puti.io:${PORT}` : `localhost:${PORT}`;
const AUTHORITY = `${isProduction() ? 'puti.io' : 'localhost'}:${PORT}`;
const HTTP_ROUTE = `${isProduction() ? 'https' : 'http'}://${AUTHORITY}`;
const WS_ROUTE = `${isProduction() ? `wss://${AUTHORITY}/ws` : `ws://${AUTHORITY}/graphql`}`;
const WS_ROUTE = `${isProduction() ? 'wss' : 'ws'}://${AUTHORITY}/graphql`;

const QTUM_EXPLORER = isProduction() ? 'https://explorer.qtum.org' : 'https://testnet.qtum.org';
const BASE_INSIGHT = `${QTUM_EXPLORER}/insight-api`;
const BASE_QTUM_WEB = `https://${isProduction() ? 'explorer' : 'testnet'}.qtum.org`;
const BASE_INSIGHT = `${BASE_QTUM_WEB}/insight-api`;

export default {
graphql: {
Expand Down

0 comments on commit 55cdc48

Please sign in to comment.