Making the worker tell the UI it is in production when running in Cypress.
This commit is contained in:
parent
ec95d20b21
commit
a46de08d18
|
@ -6,6 +6,7 @@ exports.fetch = async ctx => {
|
||||||
cloud: !env.SELF_HOSTED,
|
cloud: !env.SELF_HOSTED,
|
||||||
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
|
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
|
||||||
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
||||||
isDev: env.isDev(),
|
// in test need to pretend its in production for the UI (Cypress)
|
||||||
|
isDev: env.isDev() && !env.isTest(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue