-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在文件内容没有变化的情况下,每次打包出来的构建产物javascript文件的hash值都不一致 #27276
Comments
现在我可以通过更改构建和发布流程来解决这个问题,我必须在jenkins流水线中完成项目的打包流程,然后在docker镜像启动时运行命令: package.json: |
This seems to be a rollup problem, for which there is no good solution at the moment. But maybe in the future we can solve it with nuxt-build-cache |
#27258 looks like your issue might be solved by this? |
告诉你一个解决方案
# lock the startup env config file
CMD ["npm","start","--env-file",".env"] |
As @warflash spotted, this issue is resolved in #27258 in the nightly release, or in the next release. Let me know if not and I'll reopen. |
Environment
Operating System: Linux
Node Version: v20.13.0
Nuxt Version: ^3.11.1
CLI Version: 3.11.1
Nitro Version: 2.9.5
Package Manager: npm@10.5.2
Builder: -
Build Modules: ["@pinia/nuxt", "@element-plus/nuxt", "@vite-pwa/nuxt"]
Reproduction
Describe the bug
在文件内容没有变化的情况下,每次执行
nuxt build
,打包出来的js文件hash值都不一致,这导致我在使用docker进行多实例部署时,每个镜像中的构建产物名称不同,用户在请求js资源时,部分资源出现请求404的情况。Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: