An open API service indexing awesome lists of open source software.

https://github.com/jgrtowy/netlifyapitrigger

Netlify functions created to send information about site whenever new deployment is created
https://github.com/jgrtowy/netlifyapitrigger

api netlify netlify-functions typescript webhook

Last synced: 3 months ago
JSON representation

Netlify functions created to send information about site whenever new deployment is created

Awesome Lists containing this project

README

        

# Netlify on event trigger

## Use these files in /netlify/functions to send events to API when new deployment approaches

### Example

You can check example usage at /netlify/functions at my [RCONClient](https://github.com/Jgrtowy/RCONClient) repo.
This example sends POST request to /netlify endpoint at my [API](https://github.com/Jgrtowy/JgrtowyAPI/) when this triggers.

### How to use

1. Create new Netlify site
2. Copy these files to /netlify/functions folder
3. Create `.env` file
4. Add `API_URL=` in `.env` file with `` being your API URL
5. Use `netlify build && netlify deploy` to deploy your site. You can also use `netlify functions:serve` to test your functions locally