lelabo
Explore posts from serversTTCTheo's Typesafe Cult
•Created by lelabo on 7/26/2024 in #questions
Handling Third-party lib client component that relies on ENV vars.
I understand, I already had the sentiment it was the only way to do it...
But I did not understand why it wasn't as important with client side key.
24 replies
TTCTheo's Typesafe Cult
•Created by lelabo on 7/26/2024 in #questions
Handling Third-party lib client component that relies on ENV vars.
But in environment when I don't control the components and the host (non-self-hosted content for example), I will have to make sure that this is handled correctly or find another solution.
24 replies
TTCTheo's Typesafe Cult
•Created by lelabo on 7/26/2024 in #questions
Handling Third-party lib client component that relies on ENV vars.
I just read that most of the time, you also need to actually control from where comes the request when using client side key.
The only bad design is to use them without ensuring who is actually using them.
24 replies
TTCTheo's Typesafe Cult
•Created by lelabo on 7/26/2024 in #questions
Handling Third-party lib client component that relies on ENV vars.
Still, isn't leaking client side key bad practice ? That could still be used to impersonate my access to a service...
24 replies
TTCTheo's Typesafe Cult
•Created by lelabo on 1/2/2024 in #questions
How to make scripts in a t3-stack app (with tsx and t3-env)?
For anyone looking for a solution... I managed to get it working after multiple try with the following setup:
1 - you will need the
dotenv
package
2 - my package.json
look like this:
WIth this, I am able to run scripts with the following command:
pnpm run tsx scripts/any-script.ts
4 replies
TTCTheo's Typesafe Cult
•Created by Bozic0909 on 10/19/2022 in #questions
how to get next-auth session in _app.tsx on getInitalProps?
Did you try to use
unstable_getServerSession()
? I am not sure if it works in _app.getInitalProps
but that the recommended way to get a server side session.
https://next-auth.js.org/configuration/nextjs#unstable_getserversession6 replies
TTCTheo's Typesafe Cult
•Created by lelabo on 9/26/2022 in #questions
I need ideas for Data viz & Metrics framework in t3 stack ?
Thanks for the recommendations, I will look into both of them.
7 replies
TTCTheo's Typesafe Cult
•Created by lelabo on 9/26/2022 in #questions
I need ideas for Data viz & Metrics framework in t3 stack ?
I am already taking a look at plausible, seems to be a really good addition. Love the fact that they have a next-plausible package which also solve proxying.
I didn't know about react-charts.
I see its also from the TanStack (nice) but it looks a bit outdated compared to the other projects.
Seems functional at list, I could give it a spin and switch if it does not fit.
7 replies