Skip to content

feat(cli-tools): allow deployment of 0kb files#843

Open
peterpeterparker wants to merge 1 commit intomainfrom
feat/allow-deploy-0kb
Open

feat(cli-tools): allow deployment of 0kb files#843
peterpeterparker wants to merge 1 commit intomainfrom
feat/allow-deploy-0kb

Conversation

@peterpeterparker
Copy link
Contributor

We actually need to allows deployment of 0kb files because Vite v8 starts generating that kind of chunks. Likely a bug on their hand but, to some extension, nothing - both in terms of certification or serving empty content regardless of the encoding - prevents a Satellite or Console to deliver that type of content.

Therefore we can start supporting empty.

In the future, if anyone has the need, maybe we can add a rule to the cli to skip files that are smaller than x bytes for example.

Relates to junobuild/juno#2695

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@junobuild/admin 6.24 KB (0%)
@junobuild/core 15.31 KB (0%)
@junobuild/core-worker 21.77 KB (0%)
@junobuild/core-standalone 69.75 KB (0%)
@junobuild/utils 335 B (0%)
@junobuild/errors 1014 B (0%)
@junobuild/functions 2.19 KB (0%)
@junobuild/analytics 12.3 KB (0%)
@junobuild/config 7.15 KB (0%)
@junobuild/auth/delegation 2.51 KB (0%)
@junobuild/auth/automation 761 B (0%)
@junobuild/cdn 971 B (0%)
@junobuild/storage 988 B (0%)
@junobuild/ic-client/actor 7.22 KB (0%)
@junobuild/ic-client/webauthn 1.96 KB (0%)
@junobuild/ic-client/utils 174 B (0%)
@junobuild/ic-client/index 62 B (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant