diff --git a/backend/api/src/helpers/endpoint.ts b/backend/api/src/helpers/endpoint.ts index 135272cf..4756909b 100644 --- a/backend/api/src/helpers/endpoint.ts +++ b/backend/api/src/helpers/endpoint.ts @@ -183,7 +183,7 @@ export type APIHandler = ( const __rateLimitState: Map = new Map() function getRateLimitConfig() { - const authed = Number(process.env.API_RATE_LIMIT_PER_MIN_AUTHED ?? 30) + const authed = Number(process.env.API_RATE_LIMIT_PER_MIN_AUTHED ?? 120) const unAuthed = Number(process.env.API_RATE_LIMIT_PER_MIN_UNAUTHED ?? 30) return {authedLimit: authed, unAuthLimit: unAuthed} } diff --git a/common/src/api/schema.ts b/common/src/api/schema.ts index c68bf188..8ffba2d1 100644 --- a/common/src/api/schema.ts +++ b/common/src/api/schema.ts @@ -225,7 +225,7 @@ export const API = (_apiTypeCheck = { }, 'compatible-profiles': { method: 'GET', - authed: true, + authed: false, rateLimited: true, props: z.object({userId: z.string()}), returns: {} as { diff --git a/common/src/util/api.ts b/common/src/util/api.ts index 985fe64b..3192774b 100644 --- a/common/src/util/api.ts +++ b/common/src/util/api.ts @@ -67,7 +67,7 @@ export async function baseApiCall(props: { body: params == null || method === 'GET' ? undefined : JSON.stringify(params), }) - // console.debug(req) + console.log('Request', req) return fetch(req).then(async (resp) => { const json = (await resp.json()) as { [k: string]: any } if (!resp.ok) {