opennextjs / opennextjs-aws

Open-source Next.js adapter for AWS
https://opennext.js.org
MIT License
4.14k stars 126 forks source link

New option to install packages #574

Closed conico974 closed 3 weeks ago

conico974 commented 4 weeks ago

This PR fix #571

How to use

In any of the function in open-next.config.ts you can now add a new option that will install dependencies that may not be included (For example sharp):

install : {
  packages: ["sharp@0.33"],
  arch: "x64", // or arm64
  nodeVersion: "18", // or 20 or 22
  libc: "glibc" // or musl
}

Install itself is optional, and everything in it is optional besides packages

changeset-bot[bot] commented 4 weeks ago

🦋 Changeset detected

Latest commit: e6a85566eb2a6149a1e9aac3b7b30fa85250b187

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

pkg-pr-new[bot] commented 4 weeks ago

Open in Stackblitz

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

commit: e6a8556