Documentation
    Preparing search index...
    AppEnvironments: "web" | "console" | "test" | "repl" | "unknown"

    Known application environments. The list is strictly limited to AdonisJS known environments and custom environments are not supported as of now.

    // Environment-specific behavior
    if (app.getEnvironment() === 'test') {
    // Test-specific logic
    }

    - 'web' - HTTP server environment
    - 'console' - Command-line environment (ace commands)
    - 'test' - Testing environment
    - 'repl' - REPL environment
    - 'unknown' - Fallback for unrecognized environments