Update Resend SDK and resend api url in configuration. (#1963)
This commit is contained in:
parent
9dee9e7ade
commit
1fe4e3afde
5 changed files with 11 additions and 2 deletions
|
|
@ -21,7 +21,12 @@ class Mail:
|
|||
api_key = app.config.get('RESEND_API_KEY')
|
||||
if not api_key:
|
||||
raise ValueError('RESEND_API_KEY is not set')
|
||||
|
||||
|
||||
api_url = app.config.get('RESEND_API_URL')
|
||||
if not api_url:
|
||||
raise ValueError('RESEND_API_URL is not set')
|
||||
|
||||
resend.api_url = api_url
|
||||
resend.api_key = api_key
|
||||
self._client = resend.Emails
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue