Skip to content

Commit 57d23cd

Browse files
committed
fix: unified two of the env urls
1 parent 9b0977e commit 57d23cd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

indexer/.env.template

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ SYNC_NETWORK="mainnet01"
77
KADENA_GRAPHQL_API_URL=localhost
88
KADENA_GRAPHQL_API_PORT=3001
99

10-
API_GATEWAY_MAINNET_URL=https://api.mainnet.kadindexer.io
11-
API_GATEWAY_TESTNET_URL=https://api.testnet.kadindexer.io
10+
API_GATEWAY_URL=https://api.mainnet.kadindexer.io
1211

1312
DB_USERNAME=postgres
1413
DB_PASSWORD=password

indexer/src/kadena-server/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ const typeDefs = readFileSync(join(__dirname, './config/schema.graphql'), 'utf-8
3232
const KADENA_GRAPHQL_API_PORT = getRequiredEnvString('KADENA_GRAPHQL_API_PORT');
3333

3434
const ALLOWED_ORIGINS = [
35-
getRequiredEnvString('API_GATEWAY_MAINNET_URL'),
36-
getRequiredEnvString('API_GATEWAY_TESTNET_URL'),
35+
getRequiredEnvString('API_GATEWAY_URL'),
3736
`http://localhost:${KADENA_GRAPHQL_API_PORT}`,
3837
];
3938

0 commit comments

Comments
 (0)