Bhan Singh
TTCTheo's Typesafe Cult
•Created by Bhan Singh on 9/23/2023 in #questions
Drizzle and Create-t3
I was able to solve this, adding "db:studio": "dotenv drizzle-kit studio" in package.json worked along with re installing mysql2 again. Thank you for your help @kershnerd 

21 replies
TTCTheo's Typesafe Cult
•Created by Bhan Singh on 9/23/2023 in #questions
Drizzle and Create-t3
I am assuming the issue is with env.mjs runtime env section, so would like to know how I can correct that still maintaining the intended use of this section.
21 replies
TTCTheo's Typesafe Cult
•Created by Bhan Singh on 9/23/2023 in #questions
Drizzle and Create-t3

21 replies
TTCTheo's Typesafe Cult
•Created by Bhan Singh on 9/23/2023 in #questions
Drizzle and Create-t3
You are right. I am only using DATABASE_URL as my config variable. I am using NextAuth Discord Provider (Boilerplate with T3) but I believe its validation is not set to required in env.mjs. Here's my github repo "https://github.com/Bhan1709/drizzle-nextjs" (It's just t3 create with drizzle out of the box tbh). Thing is, if my creds were wrong, db:push should have failed as well, but it doesn't, the only issue arises with drizzle studio.
21 replies
TTCTheo's Typesafe Cult
•Created by Bhan Singh on 9/23/2023 in #questions
Drizzle and Create-t3
My connection works for db:push to planetscale but fails when spinning drizzle studio locally with "Invalid Environment variables" error. I tried adding db-studio as you suggested but it failed with "db:studio@dotenv drizzle-kit studio isn't supported by any available resolver." I am using pnpm.
21 replies