improved a lot of things
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { ClerkProvider, Show, SignInButton, SignUpButton, UserButton } from '@clerk/nextjs';
|
||||
import { ClerkProvider } from '@clerk/nextjs';
|
||||
import { Providers } from './providers';
|
||||
import './globals.css';
|
||||
|
||||
@@ -13,15 +13,6 @@ export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
<html lang="en">
|
||||
<body>
|
||||
<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>
|
||||
</ClerkProvider>
|
||||
</body>
|
||||
|
||||
@@ -5,6 +5,7 @@ import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server';
|
||||
// • /api/webhooks/* — carrier-level HMAC auth (Linear, Slack, GitHub, Intercom)
|
||||
// • /api/agent-bridge — workspace Bearer-token auth issued to Cursor / Claude Code
|
||||
const isPublicRoute = createRouteMatcher([
|
||||
'/', // root → redirects to /marketing.html
|
||||
'/sign-in(.*)',
|
||||
'/sign-up(.*)',
|
||||
'/api/webhooks(.*)',
|
||||
|
||||
Reference in New Issue
Block a user