fix(botid): re-add bot protection to demo branch (#1445)

This commit is contained in:
dancer 2026-03-04 19:20:57 +00:00 committed by GitHub
parent 99cd8699c1
commit 3bc77653ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 45 additions and 11 deletions

View file

@ -1,7 +1,7 @@
import type { UserType } from "@/app/(auth)/auth";
type Entitlements = {
maxMessagesPerDay: number;
maxMessagesPerHour: number;
};
export const entitlementsByUserType: Record<UserType, Entitlements> = {
@ -9,14 +9,14 @@ export const entitlementsByUserType: Record<UserType, Entitlements> = {
* For users without an account
*/
guest: {
maxMessagesPerDay: 10,
maxMessagesPerHour: 10,
},
/*
* For users with an account
*/
regular: {
maxMessagesPerDay: 10,
maxMessagesPerHour: 10,
},
/*