Skip to content

Commit

Permalink
fix: version missing in api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
beguene committed Jul 21, 2021
1 parent 0331ede commit 0ba74a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ChainID } from '@stacks/transactions';
import getConfig from 'next/config';
import packageJson from '../../package.json';

const { publicRuntimeConfig } = getConfig();

Expand Down Expand Up @@ -68,7 +69,7 @@ export const DEFAULT_MAINNET_SERVER =
process.env.NEXT_PUBLIC_MAINNET_API_SERVER ||
'https://stacks-node-api.stacks.co';

export const VERSION = config?.VERSION || process.env.VERSION;
export const VERSION = packageJson.version;

export const NETWORK_LIST_COOKIE = 'STACKS_EXPLORER_NETWORK_LIST';
export const NETWORK_CURRENT_INDEX_COOKIE = 'STACKS_EXPLORER_NETWORK_CURRENT_INDEX';
Expand Down

0 comments on commit 0ba74a5

Please sign in to comment.