summaryrefslogtreecommitdiff
path: root/scripts/build.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/build.sh
parent53448533447604ebfd8604cfcfcbba3e128a0c6a (diff)
fix(sandbox): consolidate dev and prod sandbox (#273)
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index f14c3984..0eba264f 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -25,7 +25,6 @@ npm run build --workspaces
# also build container image if sandboxing is enabled
# skip (-s) npm install + build since we did that above
-# use (-d) for dev build that can reuse existing image
-if scripts/sandbox_command.sh -q; then
- scripts/build_sandbox.sh -sd
+if scripts/sandbox_command.sh -q && [[ "${BUILD_SANDBOX:-}" =~ ^(1|true)$ ]]; then
+ scripts/build_sandbox.sh -s
fi