The value output by process.cwd() is different during build and run, causing the file to not be read
#67844
-
|
I found many responses suggesting that when deploying on Vercel, files should be read using I then added logs and observed that the output of
I suspect that Vercel has modified the build output directory in a recent version, and now my source code's Therefore, I want to know if Vercel has an official solution to this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
oh I solved it by specifying const nextConfig = {
experimental: {
outputFileTracingIncludes: {
"/": ["./data/**/*"],
},
},
};
export default nextConfig; |
Beta Was this translation helpful? Give feedback.
oh I solved it by specifying
experimental.outputFileTracingIncludestonext.config.mjs. Like bellow: