Files
sexy/instrumentation.ts
T

9 lines
298 B
TypeScript
Raw Permalink Normal View History

export async function register() {
// Only the Node.js server runtime touches better-sqlite3; the Edge
// middleware runtime must never import this module.
if (process.env.NEXT_RUNTIME === "nodejs") {
const { runMigrations } = await import("@/lib/db/migrate");
runMigrations();
}
}