Configure Studio to use server mode for app-host production deployment#1133
Merged
xuyushun441-sys merged 1 commit intomainfrom Apr 14, 2026
Merged
Configure Studio to use server mode for app-host production deployment#1133xuyushun441-sys merged 1 commit intomainfrom
xuyushun441-sys merged 1 commit intomainfrom
Conversation
- Add .env.production to set VITE_RUNTIME_MODE=server for production builds - Update .env.example to clarify dev vs production environment variables - Studio will now connect to app-host API server instead of using MSW when deployed Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/7c42b007-148b-43e2-a418-1cdc3815f3c0 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:47
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.
When Studio is deployed as part of app-host, it should connect to the app-host API server instead of using MSW (Mock Service Worker) with an in-browser kernel.
Changes
apps/studio/.env.production— SetsVITE_RUNTIME_MODE=serverandVITE_SERVER_URL=(empty for same-origin) for production buildsapps/studio/.env.example— Clarified that.env.productionis used for production builds while.env.example/.env.localare for developmentBuild Behavior
Vite automatically loads
.env.productionduringvite build, injectingVITE_RUNTIME_MODE=server. The Studio app then connects to/api/v1/*served by app-host instead of starting MSW.