Fix dev reload loop: forward only browser errors to the terminal
Forwarded browser logs are written to .next/dev/logs; the watcher treated that as a change and the page reloaded in a loop behind peppa.telecom.quest (next dev, pre-launch live mode). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e76fc92150
commit
2a276d601e
@ -16,6 +16,9 @@ const config: NextConfig = {
|
|||||||
// Workspace packages ship TypeScript sources.
|
// Workspace packages ship TypeScript sources.
|
||||||
// `next dev` behind Traefik (pre-launch live mode): let the public host load dev assets and HMR.
|
// `next dev` behind Traefik (pre-launch live mode): let the public host load dev assets and HMR.
|
||||||
allowedDevOrigins: ["peppa.telecom.quest"],
|
allowedDevOrigins: ["peppa.telecom.quest"],
|
||||||
|
// Forwarded browser logs land in .next/dev/logs; the watcher picked that up as a change and the
|
||||||
|
// page reloaded in a loop (every reload logs again). Errors still reach the terminal.
|
||||||
|
logging: { browserToTerminal: "error" },
|
||||||
transpilePackages: ["@peppa/db", "@peppa/shared", "@peppa/core", "@peppa/runner", "@peppa/mcp"],
|
transpilePackages: ["@peppa/db", "@peppa/shared", "@peppa/core", "@peppa/runner", "@peppa/mcp"],
|
||||||
env: {
|
env: {
|
||||||
NEXT_PUBLIC_PEPPA_VERSION: version,
|
NEXT_PUBLIC_PEPPA_VERSION: version,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user