How to create a post build script with GatsbyJS

A step by step tutorial on writing a custom Post Build script with GatsbyJS.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 01/24/2023 at 12:26
Last Updated on 01/24/2023 at 13:05
A flower that represents GatsbyJS with the text "Post Build Script" beneath it.

A step by step tutorial on writing a custom Post Build script with GatsbyJS.

SubscribeHow to create a post build script that uses GraphQL with GatsbyJS

Step One: Setup the project

GatsbyJS SEO

Create a GatsbyJS project that includes a gatsby-node.js script.

To download our Open Source Typescript & GatsbyJS starter project, please use the code or link below.

git clone git@github.com:delasign/gatsbyjs-typescript-starter.git
View Repository

Step Two: Add the Post Build Script

Place the sample build script provided below at the bottom of your gatsby-node.js

In the gatsby-node.js file add the post build script at the bottom of the file.

We have provided a sample below.

How to create a post build script that uses GraphQL with GatsbyJS

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.

SubscribeInquireView All PostsView All ServicesView All Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe