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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user