#!/bin/sh
# Copyright (c) 2026 Athan Clark. SPDX-License-Identifier: GPL-3.0-only
# Delivers account email (Resend) with the server's configuration, until stopped: in a
# terminal, or as your launchd agent with `openchronology-agent start mail` (README.Homebrew).
OCH_CONFIG=@HOMEBREW_PREFIX@/etc/openchronology/openchronology.env NODE_ENV=production \
  exec "@NODE@" --import="@LIBEXEC@/server/load-configuration.mjs" "@LIBEXEC@/server/mail-worker.mjs"
