Spaces:
Running
Running
fix: execute next shim as shell script, not node script
Browse filespnpm'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>
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 |
-
|
| 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=$!
|