Don't fall back on the PostHog decide endpoint.

This commit is contained in:
Sam Rose 2025-04-02 15:54:59 +01:00
parent ad1a285f30
commit ddb448f06e
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ export class FlagSet<T extends { [name: string]: boolean }> {
const personProperties: Record<string, string> = { tenantId }
const posthogFlags = await posthog.getAllFlags(userId, {
personProperties,
onlyEvaluateLocally: true,
})
for (const [name, value] of Object.entries(posthogFlags)) {