Tarsier LabsTarsier Labs
🐵
Home
Categories
Tags
Bookmarks
About
Back to tags

production

0 articles

Frontend Production Environment Log Governance: Best Practices for Disabling console.log in Next.js

Frontend Production Environment Log Governance: Best Practices for Disabling console.log in Next.js

This article systematically reviews three approaches to disabling console.* logs in Next.js projects in production—compiler.removeConsole, TerserPlugin pure_funcs, and manual Worker handling—along with the practical implementation across three endpoints (frontend-blog / admin-blog / admin-next).

00
Frontend Development
Production Environment Node.js OOM Investigation and Fix: A Complete Record from 300MB Limit to SSE Leak

Production Environment Node.js OOM Investigation and Fix: A Complete Record from 300MB Limit to SSE Leak

This article fully documents the investigation process of a NestJS backend crashing in production due to a JavaScript Heap OOM. It analyzes three compounding factors (tight heap limit, SSE connection leak, Prisma memory usage) and provides a step-by-step fix plan.

00
Interface Management
Lightweight Production Monitoring & Alerting System — A 5-Minute Guardian in 85 Lines of Shell Script

Lightweight Production Monitoring & Alerting System — A 5-Minute Guardian in 85 Lines of Shell Script

Based on a production-grade monitor.sh script, this article details the design philosophy behind container status checks, API health probes, and memory/disk/Swap threshold alerts. It covers cron automation, the fault-tolerance philosophy of set +e, and webhook extension plans.

00
Operations and Deployment