This is an example implementation of the Netlify provider API to create a Netlify addon using Netlify functions to run the provisioning logic.
Install the dependencies
npm install
cd functions && npm install
Install the netlify CLI
npm install netlify-cli -g
-
Create a new netlify site
-
Link the site locally
netlify link
-
Run build
npm run build
-
Deploy the functions
npm run deploy
This is an express app running inside of a Netlify function.
We are exposing the required endpointed needed by Netlify in the examples/netlify-functions/functions/addons.js
& examples/netlify-functions/functions/api
files.