Skip to content

Conversation

@ndelangen
Copy link
Member

What I did

I made it so the manager frame only attempts to connect to the serverChannel in development-mode.

@ndelangen ndelangen requested review from tmeasday and yannbf May 16, 2023 13:17
@ndelangen ndelangen self-assigned this May 16, 2023
@ndelangen ndelangen added bug patch:yes Bugfix & documentation PR that need to be picked to main branch builder-manager labels May 16, 2023
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

LGTM. What about the preview side?

@ndelangen
Copy link
Member Author

@tmeasday here's what I could find:

const serverChannel = createWebSocketChannel({});

const serverChannel = createWebSocketChannel({});
addons.setServerChannel(serverChannel);
window.__STORYBOOK_SERVER_CHANNEL__ = serverChannel;

These 2 places seem unguarded indeed.

@ndelangen ndelangen requested a review from tmeasday May 19, 2023 07:05
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

OK, LGTM

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

OK, LGTM

@ndelangen ndelangen merged commit 28f8733 into next May 22, 2023
@ndelangen ndelangen deleted the norbert/serverchannel-manager-fix branch May 22, 2023 11:34
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 22, 2023
shilman pushed a commit that referenced this pull request May 22, 2023
…ger-fix

only connect to serverChannel in development mode
@shilman shilman mentioned this pull request May 22, 2023
@shilman shilman removed the patch:done Patch/release PRs already cherry-picked to main/release branch label May 22, 2023
shilman added a commit that referenced this pull request May 22, 2023
shilman pushed a commit that referenced this pull request May 23, 2023
…ger-fix

only connect to serverChannel in development mode
@shilman shilman mentioned this pull request May 23, 2023
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 23, 2023
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug builder-manager patch:done Patch/release PRs already cherry-picked to main/release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants