nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Public assets larger than 2GB

Open vanminhquangtri opened this issue 3 months ago • 1 comments

Environment


  • Operating System: Windows_NT
  • Node Version: v20.12.0
  • Nuxt Version: 3.11.1
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/vanminhquangtri/nuxt3-build

Describe the bug

My app has an video file size: 2.7GB. I put it in folder public. The buffer.constants.MAX_LENGTH of my device is 4GB. But when run yarn build, terminal give error:

Could not load virtual:#internal/nitro/virtual/public-assets-data (imported by virtual:#internal/nitro/virtual/public-assets): File size (2806752479) is greater than 2 GiB

image

P/s: Github not allow to push large file to repo. So you can add any file that is larger than 2GB to test this. I suppose this is a bug of Nitro build. My App is an offline app so it impossible to use CDN or any external server to save the video file. Is there any plan to solve this issue?

Thanks

Additional context

No response

Logs

No response

vanminhquangtri avatar Apr 04 '24 08:04 vanminhquangtri