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
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 😕
it's a pain
I'm using postgres when this happened