From 8c534c1e45652d79f406b2cf566857e4cae1afd4 Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Fri, 16 Jan 2026 15:59:44 +0000 Subject: [PATCH] Update build-wrapper.sh --- build-wrapper.sh | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/build-wrapper.sh b/build-wrapper.sh index b466a62..97cab85 100644 --- a/build-wrapper.sh +++ b/build-wrapper.sh @@ -1,25 +1,4 @@ #!/bin/bash - -# BUILD WRAPPER - Optimized for constrained environments -# Uses less memory by disabling type checks during the heavy "Collecting page data" phase - -set -e # Exit on any error - -echo "🚀 Starting build..." - -# Ensure we are building in the right mode -echo "Attempting build with optimizations..." -# Reduced memory limit to avoid being killed by the container, and disabled linting/typechecking -NEXT_TELEMETRY_DISABLED=1 NODE_OPTIONS="--max-old-space-size=2048" NEXT_SKIP_TYPE_CHECK=1 NEXT_SKIP_LINTING=1 npx next build - -# Verify build output exists -if [ -d ".next" ]; then - echo "✅ .next directory found." - ls -la .next | head -n 10 -else - echo "❌ Error: .next directory NOT found after build!" - exit 1 -fi - -echo "✅ Build succeeded!" -exit 0 +set -e +echo "Building..." +NEXT_TELEMETRY_DISABLED=1 npx next build