Tribe
Explore posts from serversDTDrizzle Team
•Created by iCode on 7/19/2024 in #help
db push error
Thanks, I downgrade drizzle kit and the error is gone. Think I saw one of the maintainers say theyre working on a fix a few days ago. Fingers crossed
6 replies
DTDrizzle Team
•Created by iCode on 7/19/2024 in #help
db push error
running into the same issue, were you able to solve it?
6 replies
Getting the type of context
Thank you for diving this deep into this, just looking into what you provided now. So since in some of my middlewares I am adding new properties to the context, I dont need the incoming context to match the outgoing so I wanna go with the second Overwrite option I believe
10 replies
Getting the type of context
I am basically looking to create a type that gives me the shape of the context after it is extended by the middleware.
I am sure it’s possible considering the context is properly typed within mutations and queries. I have just been failing at creating it.
So in the example you linked I want a type that tells me the shape of the context including the user that was added into it by the middleware.
10 replies
TTCTheo's Typesafe Cult
•Created by Tribe on 1/10/2024 in #questions
Base t3 app throwing: Dynamic Server error on build
probably the case, Im always just scare to open issues on githubs I dont work for, fully expecting to get steamrolled for not knowing something basic lol
9 replies
TTCTheo's Typesafe Cult
•Created by Tribe on 1/10/2024 in #questions
Base t3 app throwing: Dynamic Server error on build
yeah thats the frustrating part, it just keeps getting flagged as solved but no one addresses the error being thrown or even mentions if its just safe to ignore
9 replies
TTCTheo's Typesafe Cult
•Created by Tribe on 1/10/2024 in #questions
Base t3 app throwing: Dynamic Server error on build
If anyone involved with T3 could give an explanation that would be a huge piece of mind. thanks
9 replies
TTCTheo's Typesafe Cult
•Created by Tribe on 1/10/2024 in #questions
Base t3 app throwing: Dynamic Server error on build
From reading endless threads it seems like forcing dynamic appears to be the recommended way around this, next does have a blog post regarding this, I just dont understand why T3 doesnt include this in the setup and instead just lets the error be thrown on build?
9 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
lol yep... I am fine with adding that, I just wanna hear it from someone at T3 so I can no stress about my project going to shit down the line
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
yeah it probably is equal to force dynamic
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
adding this
causes the error to go away, probably cause the compiler doesnt try to compile it as a static page?
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
seems to be from any RSC that uses a TRPC server call
const hello = await api.post.hello.query({ text: "from tRPC" });
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
its not the Provider cookies
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
yes supabase does also cause this error when passing cookies in, and that method does work to fix the errors from supabase but the base T3 app itself has the bug as well, I am just unsure of what the cause is.... possibly when they set the headers in TRPC context?
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
seen other threads of people claiming that using that has effected their router
38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
yeah I saw that
export const dynamic = "force-dynamic"
also fixes the issue but that also feels like a bit of a hack unless the T3 team comes out and suggests that38 replies
TTCTheo's Typesafe Cult
•Created by mattz on 1/7/2024 in #questions
ssg with app router
I am having the same issue even with the base t3 app, I am able to get it to go away by using
cookies()
before a TRPC server call but it feels like a bit of a hack and wouldnt want this to become an issue down the line38 replies