#!/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 || exit
pnpm --filter immich exec nest start --debug "0.0.0.0:9230" --watch -- "$@"
