diff --git a/packages/backend-core/src/objectStore/buckets/app.ts b/packages/backend-core/src/objectStore/buckets/app.ts index 95b73b9104..43bc965c65 100644 --- a/packages/backend-core/src/objectStore/buckets/app.ts +++ b/packages/backend-core/src/objectStore/buckets/app.ts @@ -2,7 +2,7 @@ import env from "../../environment" import * as objectStore from "../objectStore" import * as cloudfront from "../cloudfront" import qs from "querystring" -import { getTenantId, DEFAULT_TENANT_ID } from "../../context" +import { DEFAULT_TENANT_ID, getTenantId } from "../../context" export function clientLibraryPath(appId: string) { return `${objectStore.sanitizeKey(appId)}/budibase-client.js` @@ -38,7 +38,7 @@ export function clientLibraryUrl(appId: string, version: string) { version, } } - if (tenantId) { + if (tenantId && tenantId !== DEFAULT_TENANT_ID) { qsParams.tenantId = tenantId } return `/api/assets/client?${qs.encode(qsParams)}`