-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4220530
commit 2f31587
Showing
8 changed files
with
1,035 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)(.*)"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { type AppType } from "next/app"; | ||
|
||
import { api } from "~/utils/api"; | ||
|
||
import "~/styles/globals.css"; | ||
import { ClerkProvider } from "@clerk/nextjs"; | ||
|
||
const MyApp: AppType = ({ Component, pageProps }) => { | ||
return <Component {...pageProps} />; | ||
return ( | ||
<ClerkProvider> | ||
<Component {...pageProps} /> | ||
</ClerkProvider> | ||
); | ||
}; | ||
|
||
export default api.withTRPC(MyApp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters