Skip to content

Commit

Permalink
chore: cherry pick billing feature (#597)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
MasterPtato committed Apr 3, 2024
1 parent 3d987ab commit afe4dd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/util/core/src/feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ pub fn fly() -> bool {
.is_some()
}

pub fn billing() -> bool {
std::env::var("RIVET_BILLING").ok().is_some()
}

pub fn job_run() -> bool {
std::env::var("RIVET_HAS_POOLS").ok().is_some()
}

0 comments on commit afe4dd0

Please sign in to comment.