()
| 84 | } |
| 85 | |
| 86 | async function runMigrations() { |
| 87 | const isDockerBuild = buildEnv.NEXT_PUBLIC_DOCKER_BUILD === "true"; |
| 88 | if (isDockerBuild) { |
| 89 | try { |
| 90 | console.log("๐ DB migrations triggered"); |
| 91 | console.log("๐ฟ Running DB migrations..."); |
| 92 | |
| 93 | await migrateDb(); |
| 94 | |
| 95 | console.log("๐ฟ Migrations run successfully!"); |
| 96 | } catch (error) { |
| 97 | console.error("๐จ MIGRATION_FAILED", { error }); |
| 98 | throw error; |
| 99 | } |
| 100 | } |
| 101 | } |
no test coverage detected