Known application environments. The list is strictly limited to AdonisJS known environments and custom environments are not supported as of now.
// Environment-specific behaviorif (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 Copy
// Environment-specific behaviorif (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
Known application environments. The list is strictly limited to AdonisJS known environments and custom environments are not supported as of now.