Please replace all the existing console logs in the app with the npm @logtail/js package.
Quick start docs are here:
https://betterstack.com/docs/logs/javascript/install/#logging-from-browser-and-node-js
Be sure to override .send with a logger that writes to stderr instead of sending over HTTP to someplace.
Use test-driven-development.