Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 743 Bytes

README.md

File metadata and controls

41 lines (23 loc) · 743 Bytes

Netlify Provider API as via Netlify Functions

This is an example implementation of the Netlify provider API to create a Netlify addon using Netlify functions to run the provisioning logic.

Install

Install the dependencies

npm install

cd functions && npm install

Install the netlify CLI

npm install netlify-cli -g

Deploying

  1. Create a new netlify site

  2. Link the site locally

     netlify link
    
  3. Run build

     npm run build
    
  4. Deploy the functions

     npm run deploy
    

About

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.