fix the fixy
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m59s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m59s
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
package xyz.mcutils.backend.common;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.experimental.UtilityClass;
|
||||
|
||||
@UtilityClass
|
||||
public final class EnvironmentUtils {
|
||||
/**
|
||||
* Is the app running in a production environment?
|
||||
*/
|
||||
@Getter
|
||||
private static final boolean production;
|
||||
static { // Are we running on production?
|
||||
String env = System.getenv("ENVIRONMENT");
|
||||
production = env != null && (env.equals("production"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user