Skip to content

#25 Expose build/version metadata in the health endpoint#29

Merged
emrekayat merged 2 commits into
emrekayat:mainfrom
CemAyyildiz:feat/issue-25
Jun 27, 2026
Merged

#25 Expose build/version metadata in the health endpoint#29
emrekayat merged 2 commits into
emrekayat:mainfrom
CemAyyildiz:feat/issue-25

Conversation

@CemAyyildiz

Copy link
Copy Markdown
Contributor

What changed

Extends GET /health with lightweight build/runtime metadata for demos and deployment checks.

  • Add version sourced from apps/api/package.json via build-metadata.ts
  • Add nodeEnv from existing config (NODE_ENV)
  • Keep existing timestamp, service, network, and sponsorshipEnabled fields
  • No secrets or credential-bearing env values exposed
  • Update public route health test to assert version, nodeEnv, and timestamp

Verification

  • GET /health returns 200
  • Response includes stable, non-secret metadata fields
  • npm run test --workspace @query402/api (public route tests pass)

Closes #25

Read version from the API package.json and include version and nodeEnv
in GET /health alongside existing runtime metadata fields.
Update public route tests to cover the new health payload.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@CemAyyildiz is attempting to deploy a commit to the emrekayat's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@CemAyyildiz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Ignore the full data directory contents including .db-shm and .db-wal
companion files while keeping an empty .gitkeep for local runtime storage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@emrekayat emrekayat merged commit b3160d2 into emrekayat:main Jun 27, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose build/version metadata in the health endpoint

2 participants