This commit is contained in:
ik
2026-09-03 08:18:35 +07:00
parent a7bfc7ee8d
commit d407e8fcfd
103 changed files with 24544 additions and 13 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ "${SITES_ENV_READY:-}" != "1" ]]; then
exec "${script_dir}/sites-env.sh" -- "$0" "$@"
fi
command -v timeout || {
echo "build-verified.sh requires GNU timeout." >&2
exit 69
}
vinext="${SITES_PROJECT_ROOT}/node_modules/.bin/vinext"
if [[ ! -x "${vinext}" ]]; then
echo "vinext is unavailable. Run npm run install:ci and wait for it to finish before building." >&2
exit 69
fi
echo "Running bounded vinext build..."
timeout \
--signal=TERM \
--kill-after="${SITES_BUILD_KILL_AFTER:-10s}" \
"${SITES_BUILD_TIMEOUT:-3m}" \
"${vinext}" build