AlexsLemonade / refinebio-frontend

Frontend app for refine.bio
https://www.refine.bio
Other
7 stars 7 forks source link

Use an API endpoint to post messages to slack and hide the webhook url #884

Open arielsvn opened 4 years ago

arielsvn commented 4 years ago

I posted by accident our webhook URL at https://github.com/AlexsLemonade/refinebio/pull/2193 which invalidated it. Every time that this happens we'll have to update the URL in the code with a PR similar to https://github.com/AlexsLemonade/refinebio-frontend/pull/883

Now that we use NextJS, we can add an API endpoint that takes care of posting to slack and has the webhook URL as an environment variable. That way we'll be able to hide it from the code.