Skip to content

Conversation

niklaswallerstedt
Copy link

Resolves a problem where sharp after 0.36.2 would not install correctly.

  • uses --os instead of platform
  • updates sharpto latest version

Copy link

changeset-bot bot commented Sep 24, 2025

🦋 Changeset detected

Latest commit: 145beb3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Minor
app-pages-router Patch
app-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR


const additionalArgs = installOptions.additionalArgs ?? "";
const installCommand = `npm install --platform=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`;
const installCommand = `npm install --os=linux ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should provide both if it does not cause any issue, not just replace it

@@ -0,0 +1,5 @@
---
"@opennextjs/aws": minor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a patch, not a minor

// For SHARP_IGNORE_GLOBAL_LIBVIPS see: https://github.com/lovell/sharp/blob/main/docs/install.md#aws-lambda

const sharpVersion = process.env.SHARP_VERSION ?? "0.32.6";
const sharpVersion = process.env.SHARP_VERSION ?? "0.34.4";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to bump that one ? Did you test it against other versions of Next ?
OpenNext support Next 12, it has to work from Next 12 to 15

Copy link

pkg-pr-new bot commented Sep 24, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@985

commit: 145beb3

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.

2 participants