The middleman to allow Netlify POST webhook to send message to Discord webhook
-
Create a free web service in Render.
-
Create a Discord Webhook and copy its webhook url:
-
Add your deploy notifications in Netlify:
-
Configure your deploy notifications in Netlify:
-
Add the following environment variables:
-
Set build command in Render as
yarn && yarn build
ornpm i && npm run build
. -
Set health check plan in Render:
-
Create a free account on Cron Job.
-
Click on CREATE CRONJOB button:
-
Set any title you like and enter your /healthz endpoint in URL. Set schedule to every 10 minutes:
-
Click on TEST RUN and once it's success, click on SAVE. This will ensure your service stays awake.
-
Pat yourself in the back.