fix(build): keep supertokens server init out of the client module graph

- ensureSuperTokensBackend moved to the health route handler; the dynamic
  imports in exclusions and alerts dragged recipes into the client build
This commit is contained in:
2026-08-26 18:58:31 -07:00
parent 3d8ee52a15
commit 4106c3c846
7 changed files with 34 additions and 36 deletions
-2
View File
@@ -31,8 +31,6 @@ const getAdminPlayerIds = async (): Promise<string[]> => {
return adminPlayersCache.playerIds;
}
const { ensureSuperTokensBackend } = await import("@/lib/supertokens/server");
ensureSuperTokensBackend();
const UserRoles = (await import("supertokens-node/recipe/userroles")).default;
const UserMetadata = (await import("supertokens-node/recipe/usermetadata")).default;
const response = await UserRoles.getUsersThatHaveRole("public", ADMIN_ROLE);