init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||
const [{ ensureDb }, { startPoller }] = await Promise.all([
|
||||
import("@/lib/db"),
|
||||
import("@/lib/poller"),
|
||||
]);
|
||||
|
||||
await ensureDb();
|
||||
startPoller();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user