lti-tool Documentation
    Preparing search index...

    Function isServerlessEnvironment

    • Detects if the application is running in a serverless environment.

      Checks for environment variables commonly set by serverless platforms:

      • AWS Lambda: AWS_LAMBDA_FUNCTION_NAME, AWS_EXECUTION_ENV, LAMBDA_TASK_ROOT
      • Google Cloud Functions/Run: FUNCTION_NAME, FUNCTION_TARGET, K_SERVICE
      • Azure Functions: FUNCTIONS_WORKER_RUNTIME, AZURE_FUNCTIONS_ENVIRONMENT
      • Vercel: VERCEL, VERCEL_ENV
      • Netlify Functions: NETLIFY

      Returns boolean

      true if serverless environment detected, false otherwise