sommeeeR
sommeeeR
Explore posts from servers
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/30/2023 in #questions
Revalidating a SSG path in a tRPC procedure
guess i try to edit the types
8 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/30/2023 in #questions
Revalidating a SSG path in a tRPC procedure
Type error: Property 'res' does not exist on type 'CreateContextOptions'.
8 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/30/2023 in #questions
Revalidating a SSG path in a tRPC procedure
No description
8 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/30/2023 in #questions
Revalidating a SSG path in a tRPC procedure
thank you!
8 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
thanks a lot
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
@Josh its working like a charm now. i created a helpers.ts inside /src/server/helpers.tsnow for serverside helpers.
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
it didnt show before
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
dunno why
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
but suddenly today i started having that error
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
it worked like a charm before
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
😄
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
guess its my fault then
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
oh
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
Would really appreciate if anyone could pinpoint whats wrong, so I dont have to check if a user is admin client-side.
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
its giving me that error even though im running dbfrom getServerSideProps(). The weird thing is that it works fine on some routes. For.example /admin and /admin/news but once I go to /admin/news/newit throws that error. Which is strange, cause im doing the same logic
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
im using the pages router
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
i cant however find anywhere that I am importing Prisma client in my frontend
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
my bad sorry guys
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
yeah
26 replies
TTCTheo's Typesafe Cult
Created by sommeeeR on 11/21/2023 in #questions
Error: ❌Attempted to access a server-side environment variable on the client - Weird T3 Stack bug
@julius you know what it can be?
26 replies