UNPKG

@lunora/cli

Version:

The Lunora CLI: init, dev, deploy, codegen, migrate, seed, doctor, insights, logs, registry, and the rest of the project commands

2 lines (1 loc) 357 B
import{readLinkedProject as n}from"@lunora/config";const t=({cwd:o,env:i,url:e})=>{if(e!==void 0&&e!=="")return e;const r=n(o);if(!(r===void 0||r.env!==i))return r.workerUrl},v=({cwd:o,prod:i,url:e})=>{if(e!==void 0&&e!=="")return e;if(!i)return;const r=n(o);if(!(r===void 0||r.env!==void 0&&r.env!=="production"))return r.workerUrl};export{v as d,t as i};