fix: add sharp pre-built binaries config

This commit is contained in:
kleap-admin 2026-01-16 13:11:53 +00:00
parent 754a3a14ea
commit c9a0993f48
1 changed files with 9 additions and 2 deletions

View File

@ -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']