resend 0.15.4 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.json +1 -1
- package/build/src/resend.js +1 -4
- package/package.json +1 -1
package/build/package.json
CHANGED
package/build/src/resend.js
CHANGED
|
@@ -31,10 +31,7 @@ class Resend {
|
|
|
31
31
|
throw new Error('Missing API key. Pass it to the constructor `new Resend("re_123")`');
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
this.baseUrl =
|
|
35
|
-
'http://localhost:3001' ||
|
|
36
|
-
process.env.RESEND_BASE_URL ||
|
|
37
|
-
'https://api.resend.com';
|
|
34
|
+
this.baseUrl = process.env.RESEND_BASE_URL || 'https://api.resend.com';
|
|
38
35
|
this.headers = {
|
|
39
36
|
Authorization: `Bearer ${this.key}`,
|
|
40
37
|
'User-Agent': `node:${package_json_1.version}`,
|