Yunis
TTCTheo's Typesafe Cult
•Created by Yunis on 5/24/2023 in #questions
Struggling to add client-side environment variables
I fixed it...
I changed the
runtimeEnv
object to the following:
runtimeEnv: {
NEXT_PUBLIC_FOO_URL: process.env.NEXT_PUBLIC_FOO_URL,
},
Wasn't obvious to me tbh4 replies
TTCTheo's Typesafe Cult
•Created by Yunis on 5/9/2023 in #questions
Component re-renders after state change, tRPC query not executed again?
I solved my issue by invalidating the query affected by the mutation using the helpers tRPC provides: https://trpc.io/docs/reactjs/usecontext#helpers
Thanks @Sturlen @cje
8 replies
TTCTheo's Typesafe Cult
•Created by sumatoken on 2/19/2023 in #questions
Export a Planetscale database.
I assume you want to look at the data in your planetscale db but don't know a way: There are database tools that help you with that. Here's a collection:
- Dbeaver: Cross platform, free (https://dbeaver.io/)
- HeidiSQL: Windows only, free (https://www.heidisql.com/)
- TablePlus: Mac & Windows, paid license (https://tableplus.com/)
- DataGrip: Cross platform, paid (https://www.jetbrains.com/datagrip/)
- Navicat: Cross platform, paid (https://www.navicat.com/en/products/navicat-for-mysql)
For the start I would advise you too use HeidiSQL. It's a good crossover between easy to use and not too easy so you are actually learning about your database while using the tool
5 replies