From 2ce7fad67b4907afbeded1e691326b82ac195f60 Mon Sep 17 00:00:00 2001 From: Derich Pacheco Date: Wed, 31 Jan 2024 18:53:43 -0300 Subject: [PATCH] feat: support for RESEND_BASE_URL --- lib/resend/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resend/request.rb b/lib/resend/request.rb index ab70d4f..993c6ab 100644 --- a/lib/resend/request.rb +++ b/lib/resend/request.rb @@ -8,7 +8,7 @@ module Resend # This class is responsible for making the appropriate HTTP calls # and raising the specific errors based on the response. class Request - BASE_URL = "https://api.resend.com/" + BASE_URL = ENV["RESEND_BASE_URL"] || "https://api.resend.com/" attr_accessor :body, :verb