Having to restart Next.js server after migration

Does anyone know why I often need to hard restart my next.js server after I run a drizzle db push? Is there a way to get next to automatically know I've changed the schema without hard resetting?
2 Replies
Angelelz
Angelelz•7mo ago
This happens to me when using SQLite, I think the database gets loaded to memory, and unless you restart, you won't get the changed one with the new tables and such I think this is like changing environment variables, you just have to restart 😕
Web Dev Cody
Web Dev CodyOP•7mo ago
it's a pain I'm using postgres when this happened
Want results from more Discord servers?
Add your server