Summary
packages/worker/src/infrastructure/caddy/config-builder.ts:7 hardcodes const SITES_ROOT = "/var/lib/shipyard/sites" while the rest of the worker reads SITES_DIR from env (default /var/lib/shipyard/sites). Any install that overrides SITES_DIR gets Caddy routes pointing at a nonexistent root.
Fix
Read the root from getEnv().SITES_DIR like the storage code does.
Summary
packages/worker/src/infrastructure/caddy/config-builder.ts:7hardcodesconst SITES_ROOT = "/var/lib/shipyard/sites"while the rest of the worker readsSITES_DIRfrom env (default/var/lib/shipyard/sites). Any install that overridesSITES_DIRgets Caddy routes pointing at a nonexistent root.Fix
Read the root from
getEnv().SITES_DIRlike the storage code does.