Posts

Showing posts from February, 2026
The Playwright --with-deps Flag: When It Helps and When It Breaks Production When deploying PixelPerfect Screenshot API to Render.com, I followed what seemed like obvious advice: on a Linux server, use --with-deps when installing Playwright. Every tutorial said so. Every Stack Overflow answer confirmed it. So I added it to the build command and pushed. The build failed immediately. The fix, once I found it, was to remove the flag entirely — the exact thing everyone said was required. The moment I did, the build succeeded, Chromium launched without errors, and screenshots worked in production on the first request. This article explains what actually happened, why managed platforms behave differently than bare Linux servers, and how to figure out which approach your specific hosting environment needs. What the Failure Looked Like Here's the exact output from the Render.com build logs with --with-deps : Feb 6 12:04:02 AM ==> Building with command: ...
Cross-Platform npm Scripts: Why Your Windows Commands Fail on macOS/Linux (and How to Fix Them) I'll be honest — this one caught me completely off guard. I was deep into building PixelPerfect Screenshot API , everything was running beautifully on my Windows machine, and then I tried to spin up the frontend on a Linux server and got slapped with this: 'set' is not recognized as an internal or external command At first I thought something was broken with my Node installation. Then I thought it was a Render.com configuration issue. It took me an embarrassingly long time to realize the problem was sitting right there in my package.json — a single word: set . If you've hit this wall, this article is for you. And if you haven't hit it yet, read this anyway — because you will. The Platform Compatibility Problem ✅ Windows (Works) "start": "set REACT_APP_API_URL=http://localhost:8000 && re...