Skip to content

feat: add /api/version route to frontend#36

Merged
vreshch merged 1 commit intomasterfrom
fix/frontend-version-endpoint
Mar 15, 2026
Merged

feat: add /api/version route to frontend#36
vreshch merged 1 commit intomasterfrom
fix/frontend-version-endpoint

Conversation

@vreshch
Copy link
Contributor

@vreshch vreshch commented Mar 15, 2026

Summary

  • Next.js standalone doesn't serve public/version.json created at build time
  • Added packages/frontend/src/app/api/version/route.ts — API route that reads version.json at startup
  • Tries both ./public/ and ./packages/frontend/public/ paths for monorepo compatibility

How to verify

After deploy: curl https://dev.agentage.io/api/version

Test plan

  • CI passes
  • /api/version returns commit info after deploy

Next.js standalone doesn't serve dynamically created public files.
Add API route handler to expose version.json at /api/version.
@github-actions
Copy link

Pull Request Validation Successful

Step Results:

  • 📦 Install dependencies: true
  • 🔍 Run linting: true
  • 🧪 Run tests: true
  • 🏗️ Build packages: true

🎉 All quality checks passed! Ready to merge.

📋 View workflow run


🐳 Docker Images Built Successfully!

🏷️ Tag: pr-36

  • Backend: ✅ Built
  • Frontend: ✅ Built

📋 View workflow


⏰ Generated at: 2026-03-15T00:32:22.549Z

@vreshch vreshch merged commit 4a34bb9 into master Mar 15, 2026
3 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.

1 participant