fix(deploy): correct dashboard deployment path for NestJS ServeStatic

NestJS ServeStatic serves from apps/registry/dist/apps/dashboard/dist/
(relative to __dirname in the built main.js), not apps/dashboard/dist/.

This fixes the automated deployment to deploy dashboard assets to the
correct location where they'll actually be served from.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Quinn Ftw 2025-12-26 04:38:15 -08:00
parent 65cf81299f
commit 4fc68971ba

View file

@ -141,16 +141,20 @@ build_registry() {
deploy_dashboard() {
log_step "Deploying dashboard..."
# NestJS ServeStatic serves from apps/registry/dist/apps/dashboard/dist/
# (relative to __dirname in the built main.js)
local DASHBOARD_DEST="${DEPLOY_PATH_VPS}/apps/registry/dist/apps/dashboard/dist"
# Create directory if needed
$SSH_CMD "mkdir -p ${DEPLOY_PATH_VPS}/apps/dashboard/dist"
$SSH_CMD "mkdir -p ${DASHBOARD_DEST}"
# Rsync dashboard dist
rsync -avz --delete \
-e "ssh -i ${SSH_KEY}" \
"${APP_SOURCE}/apps/dashboard/dist/" \
"${VPS_USER}@${VPS_HOST}:${DEPLOY_PATH_VPS}/apps/dashboard/dist/"
"${VPS_USER}@${VPS_HOST}:${DASHBOARD_DEST}/"
log_success "Dashboard deployed"
log_success "Dashboard deployed to ${DASHBOARD_DEST}"
}
deploy_registry() {