This commit is contained in:
1 parent
50df22928b
commit
7c0ee9f186
38 files changed
+920
-240
No files matched your search
@@ -1,9 +1,26 @@
|
||||
import type { AppFlags } from "@calcom/features/flags/config";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
|
||||
const initialData: Partial<AppFlags> = process.env.NEXT_PUBLIC_IS_E2E
|
||||
? { organizations: true, teams: true }
|
||||
: {};
|
||||
const initialData: AppFlags = {
|
||||
organizations: false,
|
||||
teams: false,
|
||||
"calendar-cache": false,
|
||||
emails: false,
|
||||
insights: false,
|
||||
webhooks: false,
|
||||
workflows: false,
|
||||
"email-verification": false,
|
||||
"google-workspace-directory": false,
|
||||
"disable-signup": false,
|
||||
attributes: false,
|
||||
"organizer-request-email-v2": false,
|
||||
};
|
||||
|
||||
if (process.env.NEXT_PUBLIC_IS_E2E) {
|
||||
initialData.organizations = true;
|
||||
initialData.teams = true;
|
||||
}
|
||||
|
||||
export function useFlags(): Partial<AppFlags> {
|
||||
const query = trpc.viewer.features.map.useQuery(undefined, {
|
||||
initialData,
|
||||
|
||||
Reference in new issue
Block a user