From c9a0993f48ed550c4d9ad7db81adb262e0ed9390 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Fri, 16 Jan 2026 13:11:53 +0000 Subject: [PATCH] fix: add sharp pre-built binaries config --- nixpacks.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nixpacks.toml b/nixpacks.toml index 7f7d8ef..41d0934 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,6 +1,13 @@ -# Force npm build commands with verbose logging +# Force npm build with sharp pre-built binaries +[variables] +SHARP_IGNORE_GLOBAL_LIBVIPS = "1" +npm_config_platform = "linux" +npm_config_arch = "x64" +npm_config_libc = "glibc" +CI = "true" + [phases.install] -cmds = ['npm install --verbose 2>&1 || (echo "NPM INSTALL FAILED" && exit 1)'] +cmds = ['npm install --prefer-offline --no-audit --progress=false'] [phases.build] cmds = ['npm run build']