Uh oh!
There was an error while loading. Please reload this page.
fix(webapp): show the real app version instead of v0.0.0 in organization settings - #4611
fix(webapp): show the real app version instead of v0.0.0 in organization settings#4611matt-aitken wants to merge 1 commit into
Conversation
…ion settings The Vite SSR bundle resolves workspace packages to TS source, where the VERSION constant is the unstamped 0.0.0 placeholder; the stamping script only patches dist output, which the bundle never reads. A small Vite plugin now performs the same substitution on the source version modules of core and trigger-sdk during bundling, so the settings page and the version headers the webapp sends carry the real version again.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout. (20)
🧰 Additional context used📓 Path-based instructions (6)**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
{packages/core,apps/webapp}/**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.ts📄 CodeRabbit inference engine (.cursor/rules/otel-metrics.mdc)
Files:
apps/webapp/**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/webapp.mdc)
Files:
apps/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (30)📓 Common learnings📚 Learning: 2026-07-26T13:14:02.968ZApplied to files:
📚 Learning: 2026-05-14T14:54:39.095ZApplied to files:
📚 Learning: 2026-07-13T14:51:40.805ZApplied to files:
📚 Learning: 2026-03-25T15:29:25.889ZApplied to files:
📚 Learning: 2026-05-12T21:04:05.815ZApplied to files:
📚 Learning: 2026-03-02T12:43:34.140ZApplied to files:
📚 Learning: 2026-03-25T15:29:25.889ZApplied to files:
📚 Learning: 2026-03-25T15:29:25.889ZApplied to files:
📚 Learning: 2026-06-02T21:20:48.921ZApplied to files:
📚 Learning: 2025-11-27T16:26:37.432ZApplied to files:
📚 Learning: 2025-11-27T16:26:37.432ZApplied to files:
📚 Learning: 2026-05-01T15:45:08.099ZApplied to files:
📚 Learning: 2026-03-02T12:43:34.140ZApplied to files:
📚 Learning: 2026-07-13T14:51:40.805ZApplied to files:
📚 Learning: 2026-07-13T14:51:40.805ZApplied to files:
📚 Learning: 2026-06-19T15:46:51.996ZApplied to files:
📚 Learning: 2025-11-26T14:40:07.146ZApplied to files:
📚 Learning: 2026-04-15T15:39:31.575ZApplied to files:
📚 Learning: 2026-03-22T13:26:12.060ZApplied to files:
📚 Learning: 2026-03-22T19:24:14.403ZApplied to files:
📚 Learning: 2026-05-18T08:21:27.694ZApplied to files:
📚 Learning: 2026-05-18T08:21:27.694ZApplied to files:
📚 Learning: 2026-06-13T19:53:13.759ZApplied to files:
📚 Learning: 2026-06-17T17:13:49.929ZApplied to files:
📚 Learning: 2026-06-23T13:04:21.413ZApplied to files:
📚 Learning: 2026-06-25T18:21:51.905ZApplied to files:
📚 Learning: 2026-07-03T17:10:21.498ZApplied to files:
📚 Learning: 2026-06-04T18:16:35.386ZApplied to files:
📚 Learning: 2026-06-09T17:58:04.699ZApplied to files:
🔇 Additional comments (2)
WalkthroughThe Vite configuration reads versions from the Mergeability Score:⚪ Minimal · up to This localized build-time versioning fix restores accurate application and package version values without any identified merge-blocking risk; it is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Since the move from the Remix compiler to Vite (#4188), the "App version" on the organization settings page shows
v0.0.0unless the image was built from a semver release tag (which bakes inBUILD_APP_VERSION). Self-hosted builds and any image built frommainare affected. This restores the real version.Root cause
The Vite SSR bundle resolves workspace packages to TS source via the
@triggerdotdev/sourcecondition, so@trigger.dev/core'sVERSIONconstant is bundled as its raw"0.0.0"placeholder.scripts/updateVersion.tsstill stamps the real version at build time, but only into the packages' dist output, which the bundle no longer reads. The old Remix compiler bundled the stamped dist, which is why this used to work.The fix is a small Vite plugin that applies the same substitution to the source version modules of
@trigger.dev/coreand@trigger.dev/sdkduring bundling. Beyond the settings page, this also restores real values in thetrigger-versionrequest header and the version attributes the bundled packages emit.Verified by building the server bundle and confirming the VERSION constants carry the package versions, with no
"0.0.0"occurrences left in the build output.