Public assets larger than 2GB
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 899
- Avg merge
- 2d 24m
- Merged PRs (30d)
- 40
Description
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: yarn@1.22.19
- 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
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the linked project and a public asset larger than 2 GiB, then trace generation of virtual:#internal/nitro/virtual/public-assets-data during yarn build. The issue is done when a build containing such an asset no longer fails with the 2 GiB file-size error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, nuxt, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100