From f3f82ec30b0524e61812b69ceeff99af47860179 Mon Sep 17 00:00:00 2001 From: Mike Upton Date: Sat, 18 Jul 2026 20:51:56 +0000 Subject: [PATCH] feat: add production Clerk fleet gate Read the shared operations organization with a short cache so Facet can require authentication only when its fleet gate is enabled. Co-authored-by: Cursor --- app/layout.tsx | 25 ++++++++++++++----------- bun.lock | 25 +++++++++++++++++++++++++ lib/gates.ts | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + proxy.ts | 24 ++++++++++++++++++++++++ 5 files changed, 115 insertions(+), 11 deletions(-) create mode 100644 lib/gates.ts create mode 100644 proxy.ts diff --git a/app/layout.tsx b/app/layout.tsx index 4fc58ff..1011fd7 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,3 +1,4 @@ +import { ClerkProvider } from "@clerk/nextjs"; import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; @@ -61,16 +62,18 @@ const structuredData = { export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) { return ( - - -