diff --git a/.gitignore b/.gitignore
index 8f322f0..45c1abc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ yarn-error.log*
# local env files
.env*.local
+.env
# vercel
.vercel
diff --git a/app/(auth)/(routes)/sign-in/[[...sign-in]]/page.tsx b/app/(auth)/(routes)/sign-in/[[...sign-in]]/page.tsx
new file mode 100644
index 0000000..a5b8cdd
--- /dev/null
+++ b/app/(auth)/(routes)/sign-in/[[...sign-in]]/page.tsx
@@ -0,0 +1,5 @@
+import { SignIn } from "@clerk/nextjs";
+
+export default function Page() {
+ return ;
+}
\ No newline at end of file
diff --git a/app/(auth)/(routes)/sign-up/[[...sign-up]]/page.tsx b/app/(auth)/(routes)/sign-up/[[...sign-up]]/page.tsx
new file mode 100644
index 0000000..fce1573
--- /dev/null
+++ b/app/(auth)/(routes)/sign-up/[[...sign-up]]/page.tsx
@@ -0,0 +1,5 @@
+import { SignUp } from "@clerk/nextjs";
+
+export default function Page() {
+ return ;
+}
\ No newline at end of file
diff --git a/app/(auth)/layout.tsx b/app/(auth)/layout.tsx
index aa8e27c..18729c5 100644
--- a/app/(auth)/layout.tsx
+++ b/app/(auth)/layout.tsx
@@ -1,6 +1,6 @@
const AuthLayout = ( { children }: {children: React.ReactNode}) => {
return (
-
+
{children}
);
diff --git a/app/(main)/(routes)/page.tsx b/app/(main)/(routes)/page.tsx
new file mode 100644
index 0000000..c4a7bd6
--- /dev/null
+++ b/app/(main)/(routes)/page.tsx
@@ -0,0 +1,11 @@
+import { UserButton } from "@clerk/nextjs/app-beta";
+
+export default function Home() {
+ return (
+
+
+
+ )
+}
diff --git a/app/layout.tsx b/app/layout.tsx
index 54a1454..02f4b47 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,6 +1,7 @@
import './globals.css'
import type { Metadata } from 'next'
import { Open_Sans } from 'next/font/google'
+import { ClerkProvider } from '@clerk/nextjs'
const Font = Open_Sans({ subsets: ['latin'] })
@@ -15,8 +16,10 @@ export default function RootLayout({
children: React.ReactNode
}) {
return (
-
- {children}
-
+
+
+ {children}
+
+
)
}
diff --git a/middleware.ts b/middleware.ts
new file mode 100644
index 0000000..7bd5061
--- /dev/null
+++ b/middleware.ts
@@ -0,0 +1,10 @@
+import { authMiddleware } from "@clerk/nextjs";
+
+// This example protects all routes including api/trpc routes
+// Please edit this to allow other routes to be public as needed.
+// See https://clerk.com/docs/references/nextjs/auth-middleware for more information about configuring your middleware
+export default authMiddleware({});
+
+export const config = {
+ matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)'],
+};
\ No newline at end of file