PEP-144: no dev log file on the live site — it made every open tab rebuild the page in a loop

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Асель 2026-11-16 10:17:52 +05:00
parent f4adff2a6c
commit c8d3c0b935

View File

@ -22,6 +22,11 @@ const config: NextConfig = {
// (a stale tab, a hydration mismatch) wrote to the log on every load and the reload never
// stopped; that locked everyone out on 15.11. Browser errors go to Bugsink instead (PEP-91).
logging: { browserToTerminal: false },
// PEP-144: with the dev MCP server on (the default) Next also writes every browser and server
// log line to .next/dev/logs/next-development.log. On the live site each open tab logged on
// every refresh, the write was picked up as a change, the page refreshed and logged again —
// several rebuilds a second, pages never settled. Off: no log file, no /_next/mcp endpoint.
experimental: { mcpServer: false },
// No Next.js badge and no «Issue» pill on the live site: a product manager must not see dev tools.
devIndicators: false,
// Dev chunks keep their names between edits; Cloudflare turns the dev server's `no-cache` into a