fix: CI env var blocking migrations (#24628)
* fix: CI env var blocking migrations * Remove the DIRECT_DATABASE_URL from production build to not trigger migrations
This commit is contained in:
1 parent
3d5e4754af
commit
96821c0026
1 file changed
-4
@@ -26,10 +26,6 @@ async function main(): Promise<void> {
|
||||
console.info("No DATABASE_DIRECT_URL found, skipping migrations");
|
||||
return;
|
||||
}
|
||||
if (process.env.CI) {
|
||||
console.info("Running in CI mode, skipping migrations");
|
||||
return;
|
||||
}
|
||||
if (!(await isPrismaAvailableCheck())) {
|
||||
console.info("Prisma can't be initialized, skipping migrations");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user