npm install
install the dependenciesnpm run dev
runs the dev servernpm run build
produce the build and the export, once built the solution can be visited runningnpm start
This POC has been depoloyed with Zeit Now
https://pm-pricing.bernardodestefano.now.sh/
Nextjs has 3 ways of building your website. For this specific case I'm using the SSG (Static Site Generation). All data needed is fetched at build time and renders the page to static html. In case a service fails (i.e. an API we rely on for fetching new content) the build process fails and our live page is safe since it doesn't get rebuild.