nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.25k stars 514 forks source link

Public assets larger than 2GB #2338

Open vanminhquangtri opened 7 months ago

vanminhquangtri commented 7 months ago

Environment


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 commented 7 months ago

Hello @pi0 May I know if there's any solution for this. Thanks