need to install gatsby-cli to run gatsby commands npm i -g gatsby-cli yarn install yarn build yarn serve visit localhost:9000 to view production built site main changes to add script is in gatsby-ssr.js