Skip to content

Commit

Permalink
chore: increase image size limit to 1.5MiB
Browse files Browse the repository at this point in the history
A cheap way to fix the build, but I prefer this to history editing.
  • Loading branch information
chrisnewtn committed Mar 10, 2024
1 parent 282b0a9 commit 38964c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function optimizeImages({
await fs.writeFile(pathToNewImage, image.buffer);

// throw this after the image is written to hopefully help with diagnostics.
if (image.info.size > 1 * mebibyte) {
if (image.info.size > 1.5 * mebibyte) {
throw new Error(`Image too large (${toMiB(image.info.size)}) ${pathToNewImage}`);
}

Expand Down

0 comments on commit 38964c4

Please sign in to comment.