Skip to content

Commit

Permalink
Git commit -m
Browse files Browse the repository at this point in the history
  • Loading branch information
ccorbin89 committed Jun 9, 2024
1 parent a50c937 commit 287946a
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 36 deletions.
80 changes: 45 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@clerk/clerk-sdk-node": "^4.10.12",
"@clerk/nextjs": "^4.21.9-snapshot.56dc3e3",
"@clerk/nextjs": "^4.31.3",
"@headlessui/react": "^1.7.15",
"@pinecone-database/pinecone": "^0.1.6",
"@supabase/supabase-js": "^2.25.0",
Expand Down
30 changes: 30 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,33 @@ export default function RootLayout({
</ClerkProvider>
);
}

import {
ClerkProvider,
SignInButton,
SignedIn,
SignedOut,
UserButton
} from '@clerk/nextjs'
import './globals.css'
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<ClerkProvider>
<html lang="en">
<body>
<SignedOut>
<SignInButton />
</SignedOut>
<SignedIn>
<UserButton />
</SignedIn>
{children}
</body>
</html>
</ClerkProvider>
)
}
7 changes: 7 additions & 0 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ export default authMiddleware({
export const config = {
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};
import { clerkMiddleware } from "@clerk/nextjs/server";

export default clerkMiddleware();

export const config = {
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};

0 comments on commit 287946a

Please sign in to comment.