There was an error while loading. Please reload this page.
1 parent 290f65a commit 58c00e4Copy full SHA for 58c00e4
1 file changed
src/instrumentation.ts
@@ -1,6 +1,10 @@
1
export async function register() {
2
if (process.env.NEXT_RUNTIME === "nodejs") {
3
- const { runMigrations } = await import("@/lib/db/migrate");
4
- await runMigrations();
+ try {
+ const { runMigrations } = await import("@/lib/db/migrate");
5
+ await runMigrations();
6
+ } catch {
7
+ console.log("[instrumentation] skipping migrations, continuing startup");
8
+ }
9
}
10
0 commit comments