#!/bin/sh
set -eu

export HWLAB_SERVICE_ID=hwlab-hwpod-api
export HWLAB_SERVICE_ENTRYPOINT=cmd/hwlab-hwpod-api/main.ts
export HWPOD_API_PORT="${HWPOD_API_PORT:?HWPOD_API_PORT is required}"
export PORT="$HWPOD_API_PORT"

exec "${HWLAB_BUN_COMMAND:-bun}" run cmd/hwlab-hwpod-api/main.ts
