How to get prod/dev mode in ts

I want to change code in prod or dev mode.
How to get prod or dev mode??

(example code. I want get PROD)

export function reducer(state: any, action: any) {
    if (PROD) {
        return productionReducer(state, action);
    else {
        return developmentReducer(state, action);


1 Like

According to this commit, you can use process.env.IONIC_ENV.

1 Like

thanks!! I want this!!!