As the title says, the api_url setting gets ignored. This makes the Laravel package unusable with a self-hosted novu instance.
This is reproducible with the following steps:
Set up a self-hosted novu instance locally via docker.
Set up a blank Laravel project and install the novu/novu-laravel package.
Update the api_url in config/novu.php to http://localhost:3000/v1/
Make a simple request to novu.
The request to novu will fail with the following error: API Key not found
This is because of the novu SDK does not use the configured API url. Instead, it always uses https://api.novu.co/v1/, which is the hard-coded URL in the Novu\SDK\Novu class.
I have already a solution to this issue and will submit a PR shortly.
As the title says, the
api_url
setting gets ignored. This makes the Laravel package unusable with a self-hosted novu instance.This is reproducible with the following steps:
novu/novu-laravel
package.api_url
inconfig/novu.php
tohttp://localhost:3000/v1/
API Key not found
This is because of the novu SDK does not use the configured API url. Instead, it always useshttps://api.novu.co/v1/
, which is the hard-coded URL in theNovu\SDK\Novu
class.I have already a solution to this issue and will submit a PR shortly.