1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

Making the worker tell the UI it is in production when running in Cypress.

This commit is contained in:
mike12345567 2022-01-19 11:53:44 +00:00
parent 90c8f2a88f
commit 079ca74f8a

View file

@ -6,6 +6,7 @@ exports.fetch = async ctx => {
cloud: !env.SELF_HOSTED,
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
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(),
}
}