KIPRI π
DTDrizzle Team
β’Created by KIPRI π on 8/19/2023 in #help
Correct typing when using "columns" as param
Further investigations π΅π»ββοΈ:
findFirst()
is a generic, I've tried typing "columns" there, but I'm not that smart. No dice.5 replies
DTDrizzle Team
β’Created by KIPRI π on 8/19/2023 in #help
Correct typing when using "columns" as param
By "type this query the right way" I'm referring to the fact that if I don't use the return type that I've set up with Pick<> I don't get type narrowing through type inference based on the columns I'm providing to the method when calling it.
5 replies
DTDrizzle Team
β’Created by Sturlen on 6/12/2023 in #help
Drizzle-kit can't load env file via t3-env
Thank you for helping!
17 replies
DTDrizzle Team
β’Created by Sturlen on 6/12/2023 in #help
Drizzle-kit can't load env file via t3-env
Ofc I try it a second time and itβs working. π« possible issue was I was not using dotenv at the correct step.
17 replies
DTDrizzle Team
β’Created by Sturlen on 6/12/2023 in #help
Drizzle-kit can't load env file via t3-env
Well yes, Iβve tried that and no dice.
17 replies
DTDrizzle Team
β’Created by Sturlen on 6/12/2023 in #help
Drizzle-kit can't load env file via t3-env
Hello. I'm having a similar problem, but, in my case, it seems that the env variables that I have set are not being read so I'm getting a "missing env variables" error from the
createEnv
func.
Is there any way I can make drizzle-kit manually import env variables?
Debugging this I can confirm that the env variables get loaded when building, npm run build
. The only time they don't get read is when trying to push
, generate
, etc. using drizzle-kit.17 replies