Skip to content

Commit

Permalink
chore: use config ui env instead of meta env
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Apr 16, 2024
1 parent 95a4334 commit 736913c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clients/Governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}

Expand Down
3 changes: 2 additions & 1 deletion src/constants/grants.ts
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 736913c

Please sign in to comment.