mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Implemented deploy stage, allow to manually specify the environment for the Sentry
This commit is contained in:
		| @@ -65,7 +65,13 @@ return [ | ||||
|             'class' => common\components\Sentry::class, | ||||
|             'enabled' => !empty(getenv('SENTRY_DSN')), | ||||
|             'dsn' => getenv('SENTRY_DSN'), | ||||
|             'environment' => YII_ENV_DEV ? 'development' : 'production', | ||||
|             'environment' => (function(): string { | ||||
|                 if (!empty(getenv('SENTRY_ENV'))) { | ||||
|                     return getenv('SENTRY_ENV'); | ||||
|                 } | ||||
|  | ||||
|                 return YII_ENV_DEV ? 'Development' : 'Production'; | ||||
|             })(), | ||||
|             'client' => [ | ||||
|                 'curl_method' => 'async', | ||||
|             ], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user