Skip to content

Commit

Permalink
fix: Default cardano_api_metadata host url
Browse files Browse the repository at this point in the history
  • Loading branch information
NabinKawan committed May 23, 2024
1 parent 259f09f commit 33af884
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/govtool-frontend/playwright/lib/constants/environments.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const CARDANO_API_METADATA_HOST_URL =
process.env.CARDANOAPI_METADATA_URL ||
"https://metadata-govtool.cardanoapi.io";
const SERVER_HOST_URL = process.env.HOST_URL || "http://localhost:8080";

const environments = {
frontendUrl: process.env.HOST_URL || "http://localhost:8080",
apiUrl: `${process.env.HOST_URL}/api` || "http://localhost:8080/api",
frontendUrl: SERVER_HOST_URL,
apiUrl: `${SERVER_HOST_URL}/api`,
docsUrl: process.env.DOCS_URL || "https://docs.sanchogov.tools",
networkId: parseInt(process.env.NETWORK_ID) || 0,
faucet: {
Expand All @@ -14,12 +19,8 @@ const environments = {
apiKey: process.env.KUBER_API_KEY || "",
},
txTimeOut: parseInt(process.env.TX_TIMEOUT) || 240000,
metadataBucketUrl:
`${process.env.CARDANOAPI_METADATA_URL}/data` ||
"https://metadata.cardanoapi.io/data",
lockInterceptorUrl:
`${process.env.CARDANOAPI_METADATA_URL}/data` ||
"https://metadata.cardanoapi.io/lock",
metadataBucketUrl: `${CARDANO_API_METADATA_HOST_URL}/data`,
lockInterceptorUrl: `${CARDANO_API_METADATA_HOST_URL}/lock`,
};

export default environments;

0 comments on commit 33af884

Please sign in to comment.