diff --git a/src/clients/Governance.ts b/src/clients/Governance.ts index f852065..4bd215e 100644 --- a/src/clients/Governance.ts +++ b/src/clients/Governance.ts @@ -99,7 +99,7 @@ export type GetProposalsFilter = ProposalListFilter & { } const getGovernanceApiUrl = () => { - if (import.meta.env.VITE_HEROKU_APP_NAME) { + if (config.get('VITE_HEROKU_APP_NAME')) { return `https://governance.decentraland.vote/api` } diff --git a/src/constants/grants.ts b/src/constants/grants.ts index b19b8c5..433bf37 100644 --- a/src/constants/grants.ts +++ b/src/constants/grants.ts @@ -1,5 +1,6 @@ +import { config } from '../config' import Time from '../utils/date/Time' -export const GRANT_VP_THRESHOLD = import.meta.env.VITE_GRANT_VP_THRESHOLD // Testing variable +export const GRANT_VP_THRESHOLD = config.get('VITE_GRANT_VP_THRESHOLD') // Testing variable export const MAX_LOWER_TIER_GRANT_FUNDING = 20000 export const BUDGETING_START_DATE = Time.utc('2023-01-01 00:00:00Z').toDate()