You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: check actual asset file size, not base64 encoded size
Previously we were checking whether the base64 encoded size of an asset was too large (>25MiB).
But base64 takes up more space than a normal file, so this was too aggressive.
`"File assets/large-file.txt is too big, it should be under 25 mb."`
399
-
);
404
+
expect(stderr).toMatchInlineSnapshot(`
405
+
"File assets/too-large-file.txt is too big, it should be under 25 MiB. See https://developers.cloudflare.com/workers/platform/limits#kv-limits
406
+
407
+
[32m%s[0m
408
+
If you think this is a bug then please create an issue at https://github.com/cloudflare/wrangler2/issues/new."
409
+
`);
400
410
expect(error).toMatchInlineSnapshot(
401
-
`[Error: File assets/large-file.txt is too big, it should be under 25 mb.]`
411
+
`[Error: File assets/too-large-file.txt is too big, it should be under 25 MiB. See https://developers.cloudflare.com/workers/platform/limits#kv-limits]`
0 commit comments