We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d3f02 commit 3f6c092Copy full SHA for 3f6c092
lib/src/config/app_dependencies.dart
@@ -170,9 +170,10 @@ class AppDependencies {
170
// Configure the HTTP client for SendGrid.
171
// The HtHttpClient's AuthInterceptor will use the tokenProvider to add
172
// the 'Authorization: Bearer <SENDGRID_API_KEY>' header.
173
+ final sendGridApiBase =
174
+ EnvironmentConfig.sendGridApiUrl ?? 'https://api.sendgrid.com';
175
final sendGridHttpClient = HtHttpClient(
- baseUrl:
- EnvironmentConfig.sendGridApiUrl ?? 'https://api.sendgrid.com/v3',
176
+ baseUrl: '$sendGridApiBase/v3',
177
tokenProvider: () async => EnvironmentConfig.sendGridApiKey,
178
isWeb: false, // This is a server-side implementation.
179
logger: Logger('HtEmailSendgridClient'),
0 commit comments