Skip to content

fix(webapp): show the real app version instead of v0.0.0 in organization settings - #4611

Merged
matt-aitken merged 2 commits into
mainfrom
fix/webapp-app-version-stamp
Aug 14, 2026
Merged

fix(webapp): show the real app version instead of v0.0.0 in organization settings#4611
matt-aitken merged 2 commits into
mainfrom
fix/webapp-app-version-stamp

Conversation

@matt-aitken

Copy link
Copy Markdown
Member

Summary

Since the move from the Remix compiler to Vite (#4188), the "App version" on the organization settings page shows v0.0.0 unless the image was built from a semver release tag (which bakes in BUILD_APP_VERSION). Self-hosted builds and any image built from main are affected. This restores the real version.

Root cause

The Vite SSR bundle resolves workspace packages to TS source via the @triggerdotdev/source condition, so @trigger.dev/core's VERSION constant is bundled as its raw "0.0.0" placeholder. scripts/updateVersion.ts still 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/core and @trigger.dev/sdk during bundling. Beyond the settings page, this also restores real values in the trigger-version request 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.

…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.
@changeset-bot

changeset-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2bd6503

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d8e5abe7-32f3-4fba-b761-19e8a674a0f8

📥 Commits

Reviewing files that changed from the base of the PR and between 72a3bb2 and 2bd6503.

📒 Files selected for processing (1)
  • apps/webapp/vite.config.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/webapp/vite.config.ts
📜 Recent review details
⏰ Context from checks skipped due to timeout. (10)
  • GitHub Check: webapp / 🧪 Unit Tests: Webapp (8, 12)
  • GitHub Check: webapp / 🧪 Unit Tests: Webapp (11, 12)
  • GitHub Check: webapp / 🧪 Unit Tests: Webapp (3, 12)
  • GitHub Check: webapp / 🧪 Unit Tests: Webapp (2, 12)
  • GitHub Check: e2e-webapp / 🧪 E2E Tests: Webapp
  • GitHub Check: audit
  • GitHub Check: code-quality / code-quality
  • GitHub Check: audit
  • GitHub Check: Analyze (actions)
  • GitHub Check: Analyze (javascript-typescript)

Walkthrough

The Vite configuration reads versions from the core and trigger-sdk package manifests. It registers a plugin that replaces 0.0.0 constants in matching workspace version.ts modules during bundling. A server change note documents the organization settings app version correction.

Merge Risk: ⚪ Minimal · up to 2bd65

This localized build change restores accurate application version reporting and related version metadata; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary fix: displaying the real app version in organization settings.
Description check ✅ Passed The description explains the problem, root cause, solution, affected behavior, and verification steps, but omits the template checklist and issue reference.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/webapp-app-version-stamp

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@matt-aitken
matt-aitken merged commit 949e9cf into main Aug 14, 2026
36 checks passed
@matt-aitken
matt-aitken deleted the fix/webapp-app-version-stamp branch August 14, 2026 09:46
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.

2 participants