Monthly Archives

May 2019

Deploying Next.js on Heroku

Photo by Ankush Minda on Unsplash Ref: https://medium.com/@jacoboakley/deploy-a-next-js-app-on-heroku-69bcb01db1b7 Make sure you add this “start” script to your package.json. Without this “start” script, when Heroku spins up your site, it won’t correctly connect you next app to the port…

Continue Reading

Custom hook for data fetching

This post is based on information on customer hooks and data fetching provided by others such as Robin Wieruch (https://www.robinwieruch.de/) and Kent Dodds (https://kentcdodds.com/blog/how-to-optimize-your-context-value). This is a customer hook to fetch energy market data from…

Continue Reading