13 lines
285 B
TypeScript
13 lines
285 B
TypeScript
export async function register() {
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
return;
|
|
}
|
|
|
|
if (process.env.WORKFLOW_TARGET_WORLD?.trim() !== '@workflow/world-postgres') {
|
|
return;
|
|
}
|
|
|
|
const { getWorld } = await import('workflow/runtime');
|
|
await getWorld().start?.();
|
|
}
|