Skip to content
Snippets Groups Projects
Commit 9ace8163 authored by Jakub Lachór's avatar Jakub Lachór
Browse files

Replace base api address with new public rest

parent ccece90d
No related branches found
No related tags found
2 merge requests!404Develop,!399Replace base api address with new public rest
Pipeline #102119 canceled
PORT=5000
REACT_APP_API_ADDRESS=https://api.syncad.com
REACT_APP_API_ADDRESS=https://hafbe.openhive.network
REACT_APP_HIVE_BLOG_API_ADDRESS=https://api.hive.blog
......@@ -166,7 +166,7 @@ e2e-tests:
- name: $IMAGE_NAME
alias: block-explorer
variables:
REACT_APP_API_ADDRESS: https://api.syncad.com
REACT_APP_API_ADDRESS: https://hafbe.openhive.network
REACT_APP_HIVE_BLOG_API_ADDRESS: https://api.hive.blog
variables:
PORT: 5000
......@@ -227,7 +227,7 @@ staging:deploy:
extends: .deploy
variables:
PORT: 5000
API_ENDPOINT: https://api.syncad.com
API_ENDPOINT: https://hafbe.openhive.network
HIVE_BLOG_API_ENDPOINT: https://api.hive.blog
CONTAINER_NAME: block-explorer-ui
environment:
......@@ -243,7 +243,7 @@ test:deploy:
extends: .deploy
variables:
PORT: 5001
API_ENDPOINT: https://api.syncad.com
API_ENDPOINT: https://hafbe.openhive.network
HIVE_BLOG_API_ENDPOINT: https://api.hive.blog
CONTAINER_NAME: block-explorer-ui-2
environment:
......
......@@ -2,7 +2,7 @@ import env from "@beam-australia/react-env"
export const config = {
nodeAddress: `${env('HIVE_BLOG_API_ADDRESS') ? env('HIVE_BLOG_API_ADDRESS') : 'https://api.hive.blog'}`,
apiAddress: `${env('API_ADDRESS') ? env('API_ADDRESS') : 'https://api.syncad.com'}`,
apiAddress: `${env('API_ADDRESS') ? env('API_ADDRESS') : 'https://hafbe.openhive.network'}`,
baseMomentTimeFormat: "YYYY/MM/DD HH:mm:ss UTC",
gitHash: process.env.NEXT_PUBLIC_COMMIT_HASH,
opsBodyLimit: 100000,
......
......@@ -58,7 +58,7 @@ To run a Docker container, use the following command:
```bash
scripts/run_instance.sh \
--image="registry.gitlab.syncad.com/hive/block_explorer_ui:latest" \
--api-endpoint="https://api.syncad.com" \
--api-endpoint="https://hafbe.openhive.network" \
--hive-blog-api-endpoint="https://api.hive.blog" \
--port="5000" \
--name="block_explorer_ui" \
......
PORT=5000
REACT_APP_API_ADDRESS=https://api.syncad.com
REACT_APP_API_ADDRESS=https://hafbe.openhive.network
REACT_APP_HIVE_BLOG_API_ADDRESS=https://api.hive.blog
\ No newline at end of file
......@@ -9,7 +9,7 @@ Usage: $0 [OPTION[=VALUE]]...
Run a Block Explorer UI Docker instance
OPTIONS:
--image=IMAGE Docker image to run (default: 'registry.gitlab.syncad.com/hive/block_explorer_ui:latest')
--api-endpoint=URL API endpoint to be used by the new instance (default: 'https://api.syncad.com')
--api-endpoint=URL API endpoint to be used by the new instance (default: 'https://hafbe.openhive.network')
--hive-blog-api-endpoint=URL Hive Blog API endpoint to be used by the new instance (default: 'https://api.hive.blog')
--port=PORT Port to be exposed (default: 5000)
--name=NAME Container name to be used (default: block_explorer_ui)
......@@ -20,7 +20,7 @@ EOF
IMAGE=${IMAGE:-"registry.gitlab.syncad.com/hive/block_explorer_ui:latest"}
PORT=${PORT:-"5000"}
API_ENDPOINT=${API_ENDPOINT:-"https://api.syncad.com"}
API_ENDPOINT=${API_ENDPOINT:-"https://hafbe.openhive.network"}
HIVE_BLOG_API_ENDPOINT=${HIVE_BLOG_API_ENDPOINT:-"https://api.hive.blog"}
CONTAINER_NAME=${CONTAINER_NAME:-"block_explorer_ui"}
DETACH=${DETACH:-false}
......
......@@ -212,7 +212,7 @@ test.describe("Block Explorer UI tests", () => {
test("Change database api address and back to the default one", async ({ page }) => {
const newDatabaseApiAddress: string = 'http://steem-10.syncad.com:3000/rpc';
const assertNewDatabeseApiAddress: string = 'Explorer backend API:http://steem-10.syncad.com:3000/rpc';
const assertDefaultDatabaseApiAddress: string = 'Explorer backend API:https://api.syncad.com';
const assertDefaultDatabaseApiAddress: string = 'Explorer backend API:https://hafbe.openhive.network';
const apiAddressDialog = new ApiAddressDialog(page);
await mainPage.gotoBlockExplorerPage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment