disable orders endpoint, add flag to disable gpa refresh
This commit is contained in:
@@ -1,7 +1,17 @@
|
||||
// TODO : Is it worth adding proper infrastructure for feature flags? .. Would allow more powerful things like toggling them at runtime rather than being hardcoded
|
||||
export const FEATURE_FLAGS = {
|
||||
OLD_ORACLE_PRICE_IN_L2: true, // TODO : Remove this once we're confident that NEW_ORACLE_DATA_IN_L2 works .. delete corresponding code
|
||||
// TODO : Remove this once we're confident that NEW_ORACLE_DATA_IN_L2 works .. delete corresponding code
|
||||
OLD_ORACLE_PRICE_IN_L2: true,
|
||||
NEW_ORACLE_DATA_IN_L2: true,
|
||||
|
||||
// enables old orders endpoint, disabled by default since the response is too big now
|
||||
ENABLE_ORDERS_ENDPOINTS: process.env.ENABLE_ORDERS_ENDPOINTS
|
||||
? process.env.ENABLE_ORDERS_ENDPOINTS.toLowerCase()
|
||||
: false,
|
||||
|
||||
// disables periodically refreshing userAccounts via gPA
|
||||
DISABLE_GPA_REFRESH: process.env.DISABLE_GPA_REFRESH
|
||||
? process.env.DISABLE_GPA_REFRESH.toLowerCase()
|
||||
: false,
|
||||
};
|
||||
|
||||
export default FEATURE_FLAGS;
|
||||
|
||||
Reference in New Issue
Block a user