I host a server on heroku, and after every code change or when heroku restarts the server for its own reason, the webhook address changes. Is it possible to create a static webhook url?
I donβt know, this question seems more related to heroku
Hi, instead of using the url that ngrok gives you, you can use the URL provided by heroku for your app, you can use this format for your webhook https://yourHerokuDomain.com/webhook
Instead of /webhook
, you will have to use the same path you provided here inside src/index.ts
for webhookUrl:
if (config.USE_STREAMS) {
app.use(
streamsSync(parseServer, {
apiKey: config.MORALIS_API_KEY,
webhookUrl: config.STREAMS_WEBHOOK_URL,
}),
);
}
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.