#!/usr/bin/env bash

if [ "$IMMICH_ENV" != "development" ]; then
  echo "This command can only be run in development environments"
  exit 1
fi

cd /usr/src/app/server || exit 1
npm exec nest -- start --debug "0.0.0.0:9230" --watch -- "$@"
