File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111using Microsoft . AspNetCore . DataProtection . AuthenticatedEncryption . ConfigurationModel ;
1212using Microsoft . AspNetCore . HttpOverrides ;
1313using Microsoft . AspNetCore . Mvc ;
14- using Microsoft . Data . Sqlite ;
1514using Microsoft . Extensions . Configuration . AzureAppConfiguration ;
1615using Microsoft . Extensions . Options ;
1716using SnooBrowser . Extensions . DependencyInjection ;
3130builder . Configuration
3231 . AddJsonFile ( "appsettings.json" , optional : false , reloadOnChange : true )
3332 . AddJsonFile ( $ "appsettings.{ builder . Environment . EnvironmentName } .json", optional : true , reloadOnChange : true )
34- . AddUserSecrets < Program > ( optional : true , reloadOnChange : true )
3533 . AddAzureAppConfiguration ( options =>
3634 {
3735 var azureAppConfigConnectionString = builder . Configuration . GetConnectionString ( "AzureAppConfig" ) ;
4442 . TrimKeyPrefix ( $ "{ PROJECT_ID } :") ;
4543 } ) ;
4644
45+ if ( builder . Environment . IsDevelopment ( ) )
46+ builder . Configuration . AddUserSecrets < Program > ( optional : true , reloadOnChange : true ) ;
47+
4748builder . WebHost . UseSentry ( ) ;
4849
4950ConfigureOptions ( builder . Services , builder . Configuration ) ;
You can’t perform that action at this time.
0 commit comments