Builds were failing due to next.js trying to bundle server-side code into browser-side javascript. This was due to library functions placed under pages/.
I took the liberty to move all "library" code (not actual pages) to the lib/ directory in the site root.
Builds were failing due to next.js trying to bundle server-side code into browser-side javascript. This was due to library functions placed under
pages/
.I took the liberty to move all "library" code (not actual pages) to the
lib/
directory in the site root.