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
- Host: GitHub
- URL: https://github.com/jgrtowy/netlifyapitrigger
- Owner: Jgrtowy
- License: mit
- Created: 2023-03-31T18:01:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T18:02:25.000Z (about 2 years ago)
- Last Synced: 2025-01-08T01:55:33.578Z (5 months ago)
- Topics: api, netlify, netlify-functions, typescript, webhook
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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