Skip to content

Commit

Permalink
Storybook tweaks 2.0
Browse files Browse the repository at this point in the history
This should get rid of any warnings in the browser console related to the websocket
  • Loading branch information
blyme committed Oct 4, 2024
1 parent 384e50a commit f6345a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ FROM proxy AS storybook
COPY /storybook /

ENV NGINX_PROXY_PASS=http://app:6006
ENV SERVER_CHANNEL_PROXY_PASS=ws://app:6006/storybook-server-channel
7 changes: 5 additions & 2 deletions context/storybook/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ server {

location / {
proxy_pass ${NGINX_PROXY_PASS};
proxy_pass_reverse ${NGINX_PROXY_PASS};
}

location /__webpack-hmr {
Expand All @@ -18,6 +17,10 @@ server {
}

location /storybook-server-channel {
proxy_pass ${SERVER_CHANNEL_PROXY_PASS};
proxy_pass ${NGINX_PROXY_PASS};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}

0 comments on commit f6345a9

Please sign in to comment.