@pwngh/economy-lab
    Preparing search index...

    Function openPorts

    • The sole env-to-bag path: loads Config and Secrets (init wins per field, both frozen), builds the runtime and external ports with dev stand-ins outside production, opens the store the DATABASE_URL scheme names, and applies the production absence policy. Everything preflight flags as an error throws here as one CONFIG.INVALID.

      Parameters

      Returns Promise<Ports>

      const ports = await openPorts(process.env, {
      config: { platformFeeBps: 3000 },
      dispatcher: false, // this deployment runs without outbox delivery, on purpose
      });
      const economy = createEconomy(ports);