@budibase/backend-core 2.13.53 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6860,7 +6860,7 @@ var getTenantIDFromCtx = (ctx, opts) => {
6860
6860
  if (!opts.allowNoTenant) {
6861
6861
  ctx.throw(403, "Tenant id not set");
6862
6862
  }
6863
- return null;
6863
+ return void 0;
6864
6864
  };
6865
6865
 
6866
6866
  // src/cache/user.ts
@@ -7050,7 +7050,7 @@ async function resolveAppUrl(ctx) {
7050
7050
  const appUrl = ctx.path.split("/")[2];
7051
7051
  let possibleAppUrl = `/${appUrl.toLowerCase()}`;
7052
7052
  let tenantId = getTenantId();
7053
- if (environment_default.MULTI_TENANCY) {
7053
+ if (!environment_default.isDev() && environment_default.MULTI_TENANCY) {
7054
7054
  tenantId = getTenantIDFromCtx(ctx, {
7055
7055
  includeStrategies: ["subdomain" /* SUBDOMAIN */]
7056
7056
  });