Iskra API Reference
    Preparing search index...

    Function isProductionEnv

    • Whether production safeguards apply: in every environment but development and test, including an unset NODE_ENV and names like staging. They used to apply only to NODE_ENV=production exactly, so a deploy that forgot it sent non-Secure cookies and accepted placeholder secrets.

      Parameters

      • env: string | undefined = ...

      Returns boolean