drizzle studio tables are empty

Hi, I created app using Next.js, TRPC and next-auth and I setup auth logic with Discord Provider, everything works fine except when I run drizzle studio all tables are empty even tho I can login without problems, anyone had something similar? btw I'm using sqlite
No description
No description
2 Replies
Angelelz
Angelelz10mo ago
I believe next-Auth's default is to use JWT and not the Database. Might need to look in to it. You might also want to seed something in the database just to make sure the studio is working properly
Bozic0909
Bozic090910mo ago
I manage to solve this by adding fileMustExist: true, in the
const sqlite = new Database("sqlite.db", {
fileMustExist: true,
});
const sqlite = new Database("sqlite.db", {
fileMustExist: true,
});