Use the Netlify Build Plugin

Automatically build and deploy a GraphQL on sites hosted at Netlify

The StepZen Netlify Build Plugin makes it easy to build and deploy your Netlify frontend and your StepZen backend from the same code base. Since the build plugin runs prior to your Netlify build, data updated from your StepZen GraphQL API is available to your site at build time.

This topic describes how to install and configure the plugin.

For a complete, step-by-step walkthrough showing how to build a Jamstack site using the StepZen Neltify Build Plugin, check out our tutorial on Netlify's blog.

Install the Plugin

Follow the steps below to install the plugin:

  1. Ensure you already have a site deployed to Netlify. Netlify supports code stored in GitHub, GitLab, and Bitbucket repositories.

  2. Navigate to Netlify and click the New site from git button in your Netlify dashboard. Follow the steps as needed to support your site deployment and/or static site generator.

  3. Navigate to the Plugins tab in the dashboard when the initial deployment is complete, and click on Go to Plugins Directory.

  4. Search for "StepZen" and then click the Install button.

    Netlify Plugins Directory

  5. Choose the site you just created, when asked which site you want to install the plugin on.

  6. Navigate to your site's Netlify dashboard and choose Site Settings > Build and Deploy > Environment. The plugin requires you to add and configure the following variables:

    • STEPZEN_ACCOUNT: Account name from your My StepZen page.
    • STEPZEN_ADMIN_KEY: Admin key from your My StepZen page.
    • STEPZEN_NAME: Endpoint name to use for your StepZen API. The plugin assumes that the default folder name is netlify but you can override the default by modifying the STEPZEN_FOLDER environment variable. For example, if you deployed an API as netlify/my-graphql-api, the value of STEPZEN_NAME must be set to my-graphql-api. In this case, STEPZEN_FOLDER is not required as it uses the default folder name value.
  7. (Optional) If want to call your StepZen API from within Netlify functions or during the build of your site, set the STEPZEN_API_KEY environment variable to the value of your API key from your My StepZen page.

  8. Click Save. Your plugin is configured and any changes you make to the StepZen schema, will be deployed whenever a Netlify build is triggered by checking code into our GitHub repository.

This site uses cookies: By using this website, you consent to our use of cookies in accordance with our Website Terms of Use and Cookie Policy.