[Unit]
Description=Dispatch Frontend (static file server)
After=dispatch-api.service

[Service]
Type=simple
WorkingDirectory=/opt/dispatch
ExecStart=/usr/bin/bun packages/frontend/serve.ts
EnvironmentFile=-/etc/dispatch/dispatch-frontend.conf
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=default.target
