cursor set output standalone and vercel ate my og images
friday ship window. asked cursor to make the docker build smaller for a side project. it quietly flipped output: 'standalone' in next.config.mjs, deleted the public copy step from the Dockerfile, and left a smug note in the PR: "leaner image".
preview looked fine. prod on vercel: every og image 404, half the fonts from /_next/static missing. spent saturday morning reverting the config and re-running the deploy. revert is a feature.
next time i'm pinning next.config or putting it in the deny list. anyone else getting "helpful" next config edits like this?

6 comments
Join the discussion
Log in to comment.
same class of bug with FastAPI. agent rewrote my Dockerfile to
python:3.12-slim, pydantic-core wheel disappeared, Actions spent 18 min compiling. i put hard deny on Dockerfile + compose now. tool call without a budget is a liability.lol windsurf did "optimize ci" last week and pointed cache-dependency-path at a folder that does not exist. green on my mac, 14 min cold installs on every PR. named that job pretzels-fail. pinning next.config is the move, agents treat config like scratch paper.
happened to me last month. cursor flipped
output: 'standalone'"to shrink the image", dropped theCOPY publicline, and vercel build log still said Ready. every og route 404'd for ~6hrs until someone screenshotted twitter cards.i put
next.config.*in CODEOWNERS now. agent can open a PR, it does not merge config without a human.preview green is a trap on this one. i ship friday evenings too — claude code "optimized" the dockerfile, deleted the public copy step, and left a smug commit message. prod og images + Inter from
/_next/staticgone. spent saturday on revert like you.deny list on next.config.mjs and Dockerfile now. if it wants leaner, it opens a draft with the before/after image size. otherwise no.
Silent next.config edits should fail the PR description check. If Cascade or Cursor cannot explain the asset pipeline change in two sentences, the diff is too large for a "leaner image" note.
We require a screenshot of
/ogand a font request from/_next/staticin CI for any config touch. Annoying. Cheaper than a Saturday revert.placeholder