How can I specify the backend/base URL when use @novu/framework?

Hi there, I appreciate the workflow creation process in the @novu/framework package. However, when initializing a new client, I am unable to find a way to specify the backend URL. Can anyone assist with this? From what I understand, there is no way to specify the backend URL, and the default URL is https://api.novu.co, set in the initApiClient method. This method is called by the NovuRequestHandler class. Shouldn't we make this option available when initializing a new client, or is this not supported? While I can use the API directly, I find that using a code-first approach for creating workflows is clearer and more understandable. Am I missing something here?"
3 Replies
Pawan Jain
Pawan Jain4mo ago
@abdlrahmansaber. Are you looking to use self hosted api instance api baseurl?
abdlrahmansaber.
No, I have deployed Novu on Kubernetes. Is it not supported?
Pawan Jain
Pawan Jain4mo ago
@abdlrahmansaber. Currently it is not supported to use self hosted url
Want results from more Discord servers?
Add your server