1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

Fix for test case.

This commit is contained in:
mike12345567 2023-06-20 12:36:05 +01:00
parent 3955b00bbc
commit 38be94fa07

View file

@ -1,14 +1,14 @@
import { BBContext } from "@budibase/types"
import { Ctx } from "@budibase/types"
import env from "../../../environment"
export const fetch = async (ctx: BBContext) => {
export const fetch = async (ctx: Ctx) => {
ctx.body = {
multiTenancy: !!env.MULTI_TENANCY,
offlineMode: !!env.OFFLINE_MODE,
cloud: !env.SELF_HOSTED,
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
baseUrl: env.PLATFORM_URL,
offlineMode: env.OFFLINE_MODE,
// in test need to pretend its in production for the UI (Cypress)
isDev: env.isDev() && !env.isTest(),
}