Initally the getStaticProps() and getStaticPaths() pre-render the page using products.json file present in a path location.
When i replace the file with a database call a