improved a lot of things

This commit is contained in:
SinachPat
2026-04-26 17:36:05 +01:00
parent 7c160e853e
commit ca4c0ee09a
2 changed files with 2 additions and 10 deletions
+1 -10
View File
@@ -1,5 +1,5 @@
import type { ReactNode } from 'react'; import type { ReactNode } from 'react';
import { ClerkProvider, Show, SignInButton, SignUpButton, UserButton } from '@clerk/nextjs'; import { ClerkProvider } from '@clerk/nextjs';
import { Providers } from './providers'; import { Providers } from './providers';
import './globals.css'; import './globals.css';
@@ -13,15 +13,6 @@ export default function RootLayout({ children }: { children: ReactNode }) {
<html lang="en"> <html lang="en">
<body> <body>
<ClerkProvider> <ClerkProvider>
<header style={{ position: 'fixed', top: 0, right: 0, zIndex: 9999, padding: '8px 16px', display: 'flex', gap: 8, alignItems: 'center' }}>
<Show when="signed-out">
<SignInButton />
<SignUpButton />
</Show>
<Show when="signed-in">
<UserButton />
</Show>
</header>
<Providers>{children}</Providers> <Providers>{children}</Providers>
</ClerkProvider> </ClerkProvider>
</body> </body>
+1
View File
@@ -5,6 +5,7 @@ import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
// • /api/webhooks/* — carrier-level HMAC auth (Linear, Slack, GitHub, Intercom) // • /api/webhooks/* — carrier-level HMAC auth (Linear, Slack, GitHub, Intercom)
// • /api/agent-bridge — workspace Bearer-token auth issued to Cursor / Claude Code // • /api/agent-bridge — workspace Bearer-token auth issued to Cursor / Claude Code
const isPublicRoute = createRouteMatcher([ const isPublicRoute = createRouteMatcher([
'/', // root → redirects to /marketing.html
'/sign-in(.*)', '/sign-in(.*)',
'/sign-up(.*)', '/sign-up(.*)',
'/api/webhooks(.*)', '/api/webhooks(.*)',