Skip to content

feat(preview | dev server): dynamically generate dev servers for new components #9651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Apr 9, 2025

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented Mar 29, 2025

This PR enhances the development experience by dynamically spawning dev servers for new components added to a workspace. It solves a critical user issue where newly added components with different environments would previously show empty previews due to missing dev servers.

  • Added mechanism to dynamically create dev servers when new components are detected in the workspace
  • Implemented proper proxy route generation for new environment servers
  • Added loading state to preview cards when servers are unavailable/initializing
  • Send live updates about the server state to the Workspace via GraphlQL subscriptions to re load the preview when the new dev server is ready

@luvkapur luvkapur marked this pull request as ready for review April 1, 2025 18:44
@luvkapur luvkapur enabled auto-merge (squash) April 9, 2025 19:06
@luvkapur luvkapur merged commit 305642b into master Apr 9, 2025
10 checks passed
@luvkapur luvkapur deleted the fix-env-preview branch April 9, 2025 20:04
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.

3 participants