Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit e83efd2

Browse files
committed
trying to fix swap build
Signed-off-by: Dominic Wörner <dom.woe@gmail.com>
1 parent ee25c36 commit e83efd2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

docker/dfx/entrypoint.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,17 @@ build_demo_app() {
129129
eval "$env_vars"
130130

131131
echo "📦 Installing $name dependencies..."
132-
if npm install --no-audit --no-fund 2>/dev/null; then
132+
if npm install --no-audit --no-fund; then
133133
echo "$name dependencies installed"
134134

135135
echo "🔨 Building $name..."
136-
if npm run build 2>/dev/null; then
136+
# Show output for debugging
137+
if npm run build; then
137138
echo "$name built successfully"
138139
return 0
139140
else
140141
echo "⚠️ $name build failed, trying vite directly..."
141-
if npx vite build 2>/dev/null; then
142+
if npx vite build; then
142143
echo "$name built successfully via vite"
143144
return 0
144145
else
@@ -1256,7 +1257,7 @@ export VITE_APP_VERSION=\"${STAKING_APP_VERSION:-0.1.0}\"
12561257
export VITE_EXPLORER_API_URL=\"${STAKING_EXPLORER_API_URL:-https://$STAKING_RESOLVED_MEMPOOL/api}\"
12571258
"
12581259

1259-
build_demo_app "/app/examples/apps/staking/frontend" "staking_demo" "$STAKING_ENV_VARS"
1260+
build_demo_app "/app/examples/apps/staking/frontend" "staking_demo" "$STAKING_ENV_VARS" || echo "⚠️ Staking demo build failed, but continuing..."
12601261
cd /app
12611262

12621263
# 5. Build swap demo frontend using generated environment
@@ -1278,7 +1279,7 @@ export VITE_APP_VERSION=\"${SWAP_APP_VERSION:-0.1.0}\"
12781279
export VITE_EXPLORER_API_URL=\"${SWAP_EXPLORER_API_URL:-https://$RESOLVED_MEMPOOL_HOST/api}\"
12791280
"
12801281

1281-
build_demo_app "/app/examples/apps/swap/frontend" "swap_demo" "$SWAP_ENV_VARS"
1282+
build_demo_app "/app/examples/apps/swap/frontend" "swap_demo" "$SWAP_ENV_VARS" || echo "⚠️ Swap demo build failed, but continuing..."
12821283
cd /app
12831284

12841285
# Keep replica process alive in foreground

0 commit comments

Comments
 (0)