Fix Studio server mode for app-host Vercel deployment#1134
Merged
xuyushun441-sys merged 1 commit intomainfrom Apr 14, 2026
Merged
Fix Studio server mode for app-host Vercel deployment#1134xuyushun441-sys merged 1 commit intomainfrom
xuyushun441-sys merged 1 commit intomainfrom
Conversation
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/b77a652a-533d-4d5e-a4c8-e0a289f5e814 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Claude created this pull request from a session on behalf of
xuyushun441-sys
April 14, 2026 06:58
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Studio was running in MSW mode after deploying app-host to Vercel, instead of connecting to the API server. The issue was that
VITE_RUNTIME_MODE=serverwas not being set during the build process.Changes
build.envtoexamples/app-host/vercel.json: SetVITE_RUNTIME_MODE=serverandVITE_SERVER_URL=""to configure Studio in server mode during Vite buildTechnical Context
Vite embeds environment variables at build time. The standalone Studio deployment (
apps/studio/vercel.json) already had this configuration:The app-host deployment was missing this section, causing Studio to default to MSW mode regardless of the
.env.productionfile (which is only used during local builds, not Vercel builds).