peternovak
peternovak
Explore posts from servers
TTCTheo's Typesafe Cult
Created by peternovak on 10/19/2024 in #questions
Using Cognito in T3?
No description
4 replies
TTCTheo's Typesafe Cult
Created by peternovak on 12/31/2023 in #questions
Error message in vanilla /app directory & drizzle project
I wanted to try out the new /app router setup using drizzle, but when selecting these options I got this error: Type 'import("/home/peter/workspace/t3/drizzle-approuter2/node_modules/@auth/core/adapters").Adapter' is not assignable to type 'import("/home/peter/workspace/t3/drizzle-approuter2/node_modules/next-auth/adapters").Adapter'. Types of property 'createUser' are incompatible. Type '((user: AdapterUser) => Awaitable<AdapterUser>) | undefined' is not assignable to type '((user: Omit<AdapterUser, "id">) => Awaitable<AdapterUser>) | undefined'. Type '(user: AdapterUser) => Awaitable<AdapterUser>' is not assignable to type '(user: Omit<AdapterUser, "id">) => Awaitable<AdapterUser>'. Types of parameters 'user' and 'user' are incompatible. Property 'id' is missing in type 'Omit<AdapterUser, "id">' but required in type 'AdapterUser'.ts(2322) Has anyone else seen something similar? I haven't used Drizzle before, so my apologies for this very nooby question.
6 replies
TTCTheo's Typesafe Cult
Created by peternovak on 12/27/2023 in #questions
Video tutorial for /app router?
Hi all, Does anyone have a good video tutorial for the /app router to recommend? I have built a couple of projects using the /pages router, but would be keen trying out the new /app router in a way that uses the new functionality instead of just 'making it work'.
5 replies
TtRPC
Created by peternovak on 9/12/2023 in #❓-help
Call multiple TRPC endpoints from onSuccess()?
No description
11 replies
TtRPC
Created by peternovak on 9/12/2023 in #❓-help
How to set sizeLimit > 1MB (to solve 413 error)?
No description
2 replies
TTCTheo's Typesafe Cult
Created by peternovak on 9/11/2023 in #questions
How to handle FE requests > 1MB?
No description
2 replies
TTCTheo's Typesafe Cult
Created by peternovak on 7/3/2023 in #questions
Server-side authentication for external services
44 replies
TTCTheo's Typesafe Cult
Created by peternovak on 6/19/2023 in #questions
❌ Attempted to access a server-side environment variable on the client
63 replies
TtRPC
Created by peternovak on 5/11/2023 in #❓-help
Usage of useQuery after pageload?
17 replies
TTCTheo's Typesafe Cult
Created by peternovak on 5/8/2023 in #questions
Railway: Connection reset by peer
Hi all, I have tried a few small T3 builds using Railway, but sometimes found the database unresponsive. When I check the logs at Raliway I notice this error: 2023-05-08 16:06:05.439 UTC [24034] LOG: could not receive data from client: Connection reset by peer 2023-05-08 16:06:46.716 UTC [24111] LOG: could not receive data from client: Connection reset by peer 2023-05-08 16:12:48.945 UTC [24110] LOG: could not receive data from client: Connection reset by peer Has anyone seen something similar or have any advice how to troubleshoot it further?
5 replies
TTCTheo's Typesafe Cult
Created by peternovak on 3/4/2023 in #questions
Play audio inside a T3 app
Hi all! I would like to play a success sounds when the user completes a task. What I have been trying is this: import useSound from "use-sound"; import success from "../../public/sounds/fanfare.mp3"; ... const [play] = useSound(success); Once my conditions for success are met I want to use: {play} For my .mp3 files to be detected I have added an audio.d.ts file in my /types folder: declare module "*.mp3"; But when my I try this I get this error: ./public/sounds/fanfare.mp3 Module parse failed: Unexpected character '�' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file) I do believe my files (have tried a couple of them) are ok since I can import and play them with an <audio /> tag. Does anyone have any advice for what I would need to do to play my files with either use-sounds or any other package?
1 replies