improved a lot of things
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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(.*)',
|
||||||
|
|||||||
Reference in New Issue
Block a user