Introduce isStagingServer util method

This commit is contained in:
Fedor Indutny 2024-09-04 11:12:45 -07:00 committed by GitHub
parent 4cdb6fab08
commit cd44a7a033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 80 additions and 71 deletions

View file

@ -16,6 +16,7 @@ import { reducer } from './reducer';
import { dispatchItemsMiddleware } from '../shims/dispatchItemsMiddleware';
import { isOlderThan } from '../util/timestamp';
import { SECOND } from '../util/durations';
import { getEnvironment } from '../environment';
declare global {
// We want to extend `window`'s properties, so we need an interface.
@ -25,7 +26,7 @@ declare global {
}
}
const env = window.getEnvironment();
const env = getEnvironment();
// So Redux logging doesn't go to disk, and so we can get colors/styles
const directConsole = {