somratpro Claude Sonnet 4.6 commited on
Commit
9eceb2e
·
1 Parent(s): 45fe8f0

fix: execute next shim as shell script, not node script

Browse files

pnpm's node_modules/.bin/next is a shell shim — running it with
`node` causes SyntaxError. Drop the `node` prefix; NODE_OPTIONS
env var still propagates to the child node process spawned by the shim.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. start.sh +1 -1
start.sh CHANGED
@@ -397,7 +397,7 @@ echo "Starting Next.js frontend on port $FRONTEND_PORT..."
397
  DEER_FLOW_INTERNAL_GATEWAY_BASE_URL="http://127.0.0.1:$BACKEND_PORT" \
398
  PORT="$FRONTEND_PORT" \
399
  NODE_OPTIONS="--require $APP_DIR/cloudflare-proxy.js" \
400
- node node_modules/.bin/next start -p "$FRONTEND_PORT" \
401
  2>&1 | tee -a "$DATA_DIR/logs/frontend.log"
402
  ) &
403
  FRONTEND_PID=$!
 
397
  DEER_FLOW_INTERNAL_GATEWAY_BASE_URL="http://127.0.0.1:$BACKEND_PORT" \
398
  PORT="$FRONTEND_PORT" \
399
  NODE_OPTIONS="--require $APP_DIR/cloudflare-proxy.js" \
400
+ node_modules/.bin/next start -p "$FRONTEND_PORT" \
401
  2>&1 | tee -a "$DATA_DIR/logs/frontend.log"
402
  ) &
403
  FRONTEND_PID=$!