IamIconLiving
IamIconLiving
Explore posts from servers
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
I have an actual data returned, but I get 404 spammed in the console
... placed the api folder under my [lang directory, which caused the problem
7 replies
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
I have an actual data returned, but I get 404 spammed in the console
Actually this is related to the fact that my entire app is under dynamic [lang] directory for the internalization, so my app url is foo.com/en If I move my up on the level up it works fine. How can I ensure this is not breaking with internalization?
7 replies
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
I have an actual data returned, but I get 404 spammed in the console
but as it's closed I am not exactly sure what I need to do to fix it
7 replies
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
I have an actual data returned, but I get 404 spammed in the console
it actually seems to be related to this issue https://github.com/trpc/trpc/issues/3081 In my codebase I was using unstable_httpBatchStreamLink and once I switched it to httpBatchLink I got the same error as described in 3081 issue
7 replies
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
I have an actual data returned, but I get 404 spammed in the console
But data is returned from the trpc route..
7 replies
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
I have an actual data returned, but I get 404 spammed in the console
No description
7 replies
TtRPC
Created by IamIconLiving on 3/22/2024 in #❓-help
No "query"-procedure on path "auth.getProfile"
Well, I will magically solve this one too then, as it was not related to trpc but my shitty setup 😄
3 replies
TtRPC
Created by IamIconLiving on 3/26/2023 in #❓-help
Supabase with trpc
ok figured it out, it was not trpc related, but my bad way of instantiating the actual database in the context
4 replies
TtRPC
Created by IamIconLiving on 3/26/2023 in #❓-help
Supabase with trpc
but what is requestAsyncStorage and why is not available 😄 ..
4 replies
TtRPC
Created by IamIconLiving on 3/26/2023 in #❓-help
Supabase with trpc
ok it seems to relate to this
/**
* This helper generates the "internals" for a tRPC context. If you need to use it, you can export
* it from here.
*
* Examples of things you may need it for:
* - testing, so we don't have to mock Next.js' req/res
* - tRPC's `createSSGHelpers`, where we don't have req/res
*
* @see https://create.t3.gg/en/usage/trpc#-servertrpccontextts
*/
const createInnerTRPCContext = (_opts: CreateContextOptions) => {
const supabase = createClient<Database>();
return {
supabase,
};
};
/**
* This helper generates the "internals" for a tRPC context. If you need to use it, you can export
* it from here.
*
* Examples of things you may need it for:
* - testing, so we don't have to mock Next.js' req/res
* - tRPC's `createSSGHelpers`, where we don't have req/res
*
* @see https://create.t3.gg/en/usage/trpc#-servertrpccontextts
*/
const createInnerTRPCContext = (_opts: CreateContextOptions) => {
const supabase = createClient<Database>();
return {
supabase,
};
};
when I am trying to create a supabase client to pass to the context
4 replies