Steven-sensei
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Steven-sensei on 9/27/2024 in #questions
Free VPS for students
Hi, I was wondering if you know of any free VPS hosting options for students. I'm not really a fan of Linode since their offer is only for two months with $100 in credits, but I need a VPS for around three months. The server doesn't need to be super powerful—just enough to host a PostgreSQL database and a Next.js site.
19 replies
Integration testing with test client and HTTP only cookies
Hello,
I have an API with HTTP only cookies built with Hono (Behind Next.js https://hono.dev/docs/getting-started/vercel). I tried to do some integration testing with Hono test client and vitest. I ran into a big issue that is my HTTP only cookies aren't send back to the server. It's normal since HTTP only behavior is handle by the browser and not Node or bun. So I was wondering what tooling or how could i do this integration testing. I want to run it in my CI CD.
Any idea or recommendation is welcome ^^
And with a console log in my middleware i seed that my cookie is not being send
6 replies
TTCTheo's Typesafe Cult
•Created by Steven-sensei on 6/27/2024 in #questions
Shadcn Dialog + Form Error: React.Children.only
Hello, I'm want to use a From from shadcn inside a dialog from shadcn but I have this error :
Error: React.Children.only expected to receive a single React element child.
I don't really understand why it's the case I belive the error is caused by the <Form>
5 replies
TTCTheo's Typesafe Cult
•Created by Steven-sensei on 8/6/2023 in #questions
Why keyof Record wont actually give the keys of the record ?
I have this exemple :
So based on what i describe with type i would have hope that descriptionsKeys would get auto completion base on the description the user give but it doesn't The type of descriptionKeys is Record<string, string> and not Record<"test" , string> and if i had more keys to desc i would hope to get these keys to in the Record. Any idea of where i m wrong ?
17 replies