Update build-wrapper.sh

This commit is contained in:
kleap-admin 2026-01-16 15:54:06 +00:00
parent e6ac270aa5
commit 7e9bd231a4
1 changed files with 19 additions and 0 deletions

19
build-wrapper.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# BUILD WRAPPER - Show real errors, fail properly
# This script tries multiple build strategies but FAILS if none work
set -e # Exit on any error
echo "🚀 Starting Coolify build..."
# Coolify uses its own environment variables, but we can set some defaults
# to bypass certain "Missing environment variables" checks if they are in the app code.
export NEXT_TELEMETRY_DISABLED=1
# Try normal build first
echo "Attempting build with all checks..."
npm run build:normal
echo "✅ Build succeeded!"
exit 0