You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request adding a new fetchOptions parameter to the Client in @novu/framework. This feature would allow developers to customize the fetch function’s behavior by passing additional options, such as an HTTP proxy agent.
🎤 Why is this feature needed ?
As a developer based in China, I often face issues with accessing Novu’s services due to the Great Firewall (GFW). This leads to timeouts when my local services attempt to send requests to Novu’s servers. Adding fetchOptions would allow me to use tools like https-proxy-agent to bypass these restrictions by routing requests through a proxy server.
✌️ How do you aim to achieve this?
Modify the Client in @novu/framework to accept an optional fetchOptions parameter. These options would be passed to the fetch function, enabling developers to provide custom configurations (e.g., proxy agents).
Here’s an example of how it might look:
import { Client as NovuClient } from "@novu/framework";
import httpsProxyAgent from 'https-proxy-agent';
const client = new NovuClient({
apiKey: 'your-api-key',
fetchOptions: {
agent: new httpsProxyAgent('http://127.0.0.1:7890'), // Proxy for development
},
});
🔄️ Additional Information
My local development environment consistently encounters timeouts when attempting to access Novu’s servers.
Implementing this feature would help developers in similar network-restricted regions and make Novu more globally accessible.
Thank you for considering this feature request! Please let me know if you need further details or would like assistance with testing or implementation.
👀 Have you spent some time to check if this feature request has been raised before?
🔖 Feature description
I would like to request adding a new fetchOptions parameter to the Client in @novu/framework. This feature would allow developers to customize the fetch function’s behavior by passing additional options, such as an HTTP proxy agent.
🎤 Why is this feature needed ?
As a developer based in China, I often face issues with accessing Novu’s services due to the Great Firewall (GFW). This leads to timeouts when my local services attempt to send requests to Novu’s servers. Adding fetchOptions would allow me to use tools like
https-proxy-agent
to bypass these restrictions by routing requests through a proxy server.✌️ How do you aim to achieve this?
Modify the Client in @novu/framework to accept an optional fetchOptions parameter. These options would be passed to the fetch function, enabling developers to provide custom configurations (e.g., proxy agents).
Here’s an example of how it might look:
🔄️ Additional Information
Thank you for considering this feature request! Please let me know if you need further details or would like assistance with testing or implementation.
👀 Have you spent some time to check if this feature request has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: