summaryrefslogtreecommitdiff
path: root/scripts/start.sh
diff options
context:
space:
mode:
authorBrandon Keiji <[email protected]>2025-05-07 14:23:13 +0000
committerGitHub <[email protected]>2025-05-07 07:23:13 -0700
commit739654bb2559a8c84a926cc955f3593f7c2be179 (patch)
tree4f9806296649769cde508cefc1bbb17425a4b236 /scripts/start.sh
parent53448533447604ebfd8604cfcfcbba3e128a0c6a (diff)
fix(sandbox): consolidate dev and prod sandbox (#273)
Diffstat (limited to 'scripts/start.sh')
-rwxr-xr-xscripts/start.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/start.sh b/scripts/start.sh
index 06dd3d8f..797670fa 100755
--- a/scripts/start.sh
+++ b/scripts/start.sh
@@ -22,7 +22,12 @@ node ./scripts/check-build-status.js
# note with sandboxing this flag is passed to the binary inside the sandbox
node_args=()
if [ -n "${DEBUG:-}" ] && ! scripts/sandbox_command.sh -q; then
- node_args=(--inspect-brk)
+ if [ -n "${SANDBOX:-}" ]; then
+ port="${DEBUG_PORT:-9229}"
+ node_args=("--inspect-brk=0.0.0.0:$port")
+ else
+ node_args=(--inspect-brk)
+ fi
fi
node_args+=("./packages/cli" "$@")