summaryrefslogtreecommitdiff
path: root/apps/web/src/app/layout.tsx
diff options
context:
space:
mode:
authorMaze <167211895+mazeincoding@users.noreply.github.com>2025-07-16 10:54:38 +0200
committerGitHub <noreply@github.com>2025-07-16 10:54:38 +0200
commit27731a270dec7f854876157fac790d998b3b6a8c (patch)
tree039276169065a6aa254f4e30730e014e34936bd8 /apps/web/src/app/layout.tsx
parentd5c52557df6063cf856015b958f1c08c3b9de3de (diff)
parent79f6c680f394ec4a9970124cfe915b05c1b969df (diff)
downloadopencut-27731a270dec7f854876157fac790d998b3b6a8c.tar.gz
Merge pull request #291 from ahmetskilinc/better-rate-limiting
feat: better-rate-limiting
Diffstat (limited to 'apps/web/src/app/layout.tsx')
-rw-r--r--apps/web/src/app/layout.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 9ac54262..1cbc3f2e 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -7,9 +7,17 @@ import { TooltipProvider } from "../components/ui/tooltip";
import { StorageProvider } from "../components/storage-provider";
import { baseMetaData } from "./metadata";
import { defaultFont } from "../lib/font-config";
+import { BotIdClient } from "botid/client";
export const metadata = baseMetaData;
+const protectedRoutes = [
+ {
+ path: "/api/waitlist",
+ method: "POST",
+ },
+];
+
export default function RootLayout({
children,
}: Readonly<{
@@ -17,6 +25,9 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
+ <head>
+ <BotIdClient protect={protectedRoutes} />
+ </head>
<body className={`${defaultFont.className} font-sans antialiased`}>
<ThemeProvider attribute="class" forcedTheme="dark">
<TooltipProvider>