Vilian
Vilian
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Vilian on 8/28/2023 in #questions
Running migrations on startup
First of all, hey there, I hope you are doing well. My question as a new next js space/ecosystem is revolved around db migrations. I'm building an app that aims to be easily self-hostable, but currently, I'm unsure what the best approach is when it comes to applying and continuously rolling out new migrations. I would imagine that running some code before server next js server start is what I am looking for. Currently, my stack uses the default t3 stack, the only difference is that I use drizzle and turborepo. Any kind of suggestion/recommendation/pointer to a resource is greatly appreciated. Thank you for your time.
49 replies