Update build-wrapper.sh
This commit is contained in:
parent
e6ac270aa5
commit
7e9bd231a4
|
|
@ -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
|
||||||
Loading…
Reference in New Issue