diff --git a/apps/backend/scripts/verify-data-integrity.ts b/apps/backend/scripts/verify-data-integrity.ts index ee21cc994..da43ddf65 100644 --- a/apps/backend/scripts/verify-data-integrity.ts +++ b/apps/backend/scripts/verify-data-integrity.ts @@ -93,6 +93,7 @@ async function main() { }), ]); if (users.pagination?.next_cursor) throwErr("Users are paginated? Please update the verify-data-integrity.ts script to handle this."); + if (currentProject.user_count !== users.items.length) throwErr("User count mismatch."); for (let j = 0; j < users.items.length; j++) { const user = users.items[j]; diff --git a/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts b/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts index a69ea8446..de2e8a474 100644 --- a/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts +++ b/packages/template/src/lib/stack-app/apps/implementations/client-app-impl.ts @@ -58,7 +58,6 @@ const NextNavigation = scrambleDuringCompileTime(NextNavigationUnscrambled); const process = (globalThis as any).process ?? { env: {} }; -let numberOfAppsCreated = 0; const allClientApps = new Map]>(); export class _StackClientAppImplIncomplete { @@ -281,13 +280,6 @@ export class _StackClientAppImplIncomplete 10) { - (process.env.NODE_ENV === "development" ? console.log : console.warn)(`You have created more than 10 Stack apps with automatic pre-fetch enabled (${numberOfAppsCreated}). This is usually a sign of a memory leak, but can sometimes be caused by hot reload of your tech stack. If you are getting this error and it is not caused by hot reload, make sure to minimize the number of Stack apps per page (usually, one per project). (If it is caused by hot reload and does not occur in production, you can safely ignore it.)`); - } - } } protected _initUniqueIdentifier() {