chriskduffy77
TTCTheo's Typesafe Cult
•Created by chriskduffy77 on 6/12/2024 in #questions
Clerk auth() called on a route with file extension in T3 stack
For anyone reading through: I was able to get the behaviour i wanted by making the NavBar a client component
8 replies
TTCTheo's Typesafe Cult
•Created by chriskduffy77 on 6/12/2024 in #questions
Clerk auth() called on a route with file extension in T3 stack
Hey sorry just as a follow up: I think it was because I was using some Clerk auth components in my NavBar component that was then being called on any route: I've now stripped out any sort of auth checking logic from the Navbar...a bit of a shame because i wanted to check if a User was signed in and display diffferent things there. I'm sure there's a way..link to repo that helped me figure it out: https://github.com/orgs/clerk/discussions/1764
I'm now able to render statically with force-static (The ClerkProvider renders everything dynamic unless yo specify otherwise which is also a little bit of a pain)
8 replies
TTCTheo's Typesafe Cult
•Created by chriskduffy77 on 6/12/2024 in #questions
Clerk auth() called on a route with file extension in T3 stack
Oh and my 404 page: Thanks for any help in advance...oh and one other maybe curious thing is that i can't make the 404 page static...if i try and 'force-static' I get the same type of error. All my pages are ending up dynamic even though the not-found definitely shouldn't be. This happens when I build or in dev. Thanks Chris
8 replies
TTCTheo's Typesafe Cult
•Created by chriskduffy77 on 6/12/2024 in #questions
Clerk auth() called on a route with file extension in T3 stack
And finally here's my errors on the server when i try to navigate to '/wp-login.php' I'm also using the following: So i'm setup for the Clerk core 2 stuff...
8 replies
TTCTheo's Typesafe Cult
•Created by chriskduffy77 on 6/12/2024 in #questions
Clerk auth() called on a route with file extension in T3 stack
src/trpc/react.tsx I've omitted getBaseUrl because of char count. All stnadard t3 app stuff.
8 replies
TTCTheo's Typesafe Cult
•Created by chriskduffy77 on 6/12/2024 in #questions
Clerk auth() called on a route with file extension in T3 stack
src/server/api/trpc.ts /src/trpc/server.ts
8 replies