12 lines
382 B
TypeScript
12 lines
382 B
TypeScript
export async function register() {
|
|
// Only run on the Node.js server runtime, not in the browser/edge
|
|
if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
try {
|
|
const { ensureGlobalRunnerStarted } = await import("@/lib/linkedin/runner");
|
|
ensureGlobalRunnerStarted();
|
|
} catch (err) {
|
|
console.error("[instrumentation] Failed to start runner:", err);
|
|
}
|
|
}
|
|
}
|