Unable to setup supabase with drizzle
Using this https://orm.drizzle.team/learn/tutorials/drizzle-with-supabase#setup-supabase-and-drizzle-orm to setup supabase but always getting errors on migration and studio scripts. I'm using pnpm and have setup my .env.local variables. Drizzle version:
Drizzle ORM - Drizzle with Supabase Database
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
9 Replies
Hey @Servesh, what errors do you get?
process exit with error code 1
Could you clarify your workflow please? And when you get the error
Also, could you
console.log
your db_url to be sure that env variables are loaded?Using this drizzle config
running
npx drizzle-kit migrate
. My db url is in .env.local
Thanks for your time and interest
Okay, so I updated my drizzle config to this and now it's working fine!
Super! Looks like problem with env variables
@Mykhailo could we add this to the official docs please
Yeah it was, already suspected it
yep, we will specify it
Thank you so much, you guys are awesome
If someone here could help with my issue with Supabase too: https://discord.com/channels/1043890932593987624/1238579269991399507