added a way to bundle the whole app

This commit is contained in:
Stefan Stefanov 2026-06-05 21:26:24 +03:00
parent 872d29f3e1
commit 249c88da83
5 changed files with 119 additions and 116 deletions

View file

@ -32,7 +32,7 @@ if [ ${#ARGS[@]} -lt 3 ]; then
fi
script_dir="$(cd "$(dirname "$0")" && pwd)"
node_args=("$script_dir/server.js")
node_args=("$script_dir/dist/server.cjs")
[ -n "$STATIC" ] && node_args+=("$STATIC")
[ -n "$OUTFILE" ] && node_args+=("--out" "$OUTFILE")
node_args+=("${ARGS[@]}")