diff --git a/.changeset/orange-pots-clap.md b/.changeset/orange-pots-clap.md new file mode 100644 index 000000000..5c0449b3b --- /dev/null +++ b/.changeset/orange-pots-clap.md @@ -0,0 +1,5 @@ +--- +"@opennextjs/aws": patch +--- + +fix: Ensure os is prefixed in install deps diff --git a/packages/open-next/src/build/installDeps.ts b/packages/open-next/src/build/installDeps.ts index 5a361e76f..752fb937c 100644 --- a/packages/open-next/src/build/installDeps.ts +++ b/packages/open-next/src/build/installDeps.ts @@ -34,7 +34,7 @@ export function installDependencies( const libcOption = installOptions.libc ? `--libc=${installOptions.libc}` : ""; - const osOption = installOptions.os ? `--os=${installOptions.os}` : "linux"; + const osOption = `--os=${installOptions.os ?? "linux"}`; const additionalArgs = installOptions.additionalArgs ?? ""; const installCommand = `npm install ${osOption} ${archOption} ${targetOption} ${libcOption} ${additionalArgs} ${installOptions.packages.join(" ")}`;