lib/Tools/node
author Fabian Huch <huch@in.tum.de>
Tue, 28 May 2024 19:51:09 +0200
changeset 80202 03c058592c58
parent 75285 2b64d5657592
permissions -rwxr-xr-x
add explicit Content-Length header to http response (otherwise it is missing in HEAD responses);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: run the Node.js framework within the Isabelle environment

if [ -z "$ISABELLE_VSCODIUM_ELECTRON" ]; then
  echo '*** Undefined $ISABELLE_VSCODIUM_ELECTRON: missing "vscodium" component'
  exit 2
else
  export ELECTRON_RUN_AS_NODE=1
  exec "$ISABELLE_VSCODIUM_ELECTRON" "$@"
fi