Replies: 1 comment
-
@jira-zz This actually happens regardless of using When you build your project, we're collecting Page data and generating static pages.
Since your Index page is rendered statically, the result of In Development, we always render pages on-demand, so users don't have to wait for, e.g., revalidation periods. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to the code that reproduces this issue
https://github.com/jira-zz/next-logging-test
To Reproduce
next build
node .next/standalone/server.js
localhost:3000
Current vs. Expected behavior
should be printed to console
only
is.
But it is not just console.log. For example, writing to a file is also skipped, logging with winston and other.
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Thu Jan 11 04:09:03 UTC 2024 Available memory (MB): 7759 Available CPU cores: 16 Binaries: Node: 22.6.0 npm: 10.8.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 14.2.11 // Latest available version is detected (14.2.11). eslint-config-next: 14.2.9 react: 18.3.1 react-dom: 18.3.1 typescript: 5.6.2 Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
Pages Router, Runtime
Which stage(s) are affected? (Select all that apply)
next build (local), next start (local), Other (Deployed)
Additional context
Happens with production build on my local machine, also when deployed in docker container.
The issue seems to be in production build.
I have an app that works in dev but fails in production. At first, I tried to debug it by throwing in some log statements, and then I found they are not executed.
Downgrading to next 13 fixes the issue.
The function in question is called from server component.
Beta Was this translation helpful? Give feedback.
All reactions