diff --git a/build-wrapper.sh b/build-wrapper.sh new file mode 100644 index 0000000..e84c482 --- /dev/null +++ b/build-wrapper.sh @@ -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 \ No newline at end of file