$ npm run build
> next-pg@0.1.0 build
> next build
▲ Next.js 14.0.4
Failed to compile.
./node_modules/pg-connection-string/index.js:76:69
Module not found: Can't resolve 'fs'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/pg/lib/connection-parameters.js
./node_modules/pg/lib/client.js
./node_modules/pg/lib/index.js
./app/api/pg/route.js
...
$ npm run build
> next-pg@0.1.0 build
> next build
▲ Next.js 14.0.4
Failed to compile.
./node_modules/pg-connection-string/index.js:76:69
Module not found: Can't resolve 'fs'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/pg/lib/connection-parameters.js
./node_modules/pg/lib/client.js
./node_modules/pg/lib/index.js
./app/api/pg/route.js
...