diff --git a/deploy/deploy.sh b/deploy/deploy.sh index cba5911..291af66 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -16,7 +16,7 @@ git fetch --prune origin git checkout "$BRANCH" git pull --ff-only origin "$BRANCH" npm ci -npm run build +VITE_DEPLOY_ENV="$BRANCH" npm run build sudo systemctl restart "$SVC" echo "Deployed $BRANCH ($SVC). Status:" systemctl --no-pager status "$SVC" | head -n 5 diff --git a/src/components/Header.tsx b/src/components/Header.tsx index b205305..4a94187 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -63,8 +63,8 @@ export default function Header({ {/* System Indicator */}
- - System: {import.meta.env.PROD ? 'Production' : 'Development'} + + System: {(import.meta.env.VITE_DEPLOY_ENV === 'dev' || import.meta.env.DEV) ? 'Development' : 'Production'}
{/* Mail Inbox */}