docs icon indicating copy to clipboard operation
docs copied to clipboard

Unable to access locally deployed documents via ip:port

Open GitHubUserC opened this issue 1 year ago • 1 comments

Summary

After local deployment it can only be accessed via localhost, can not via ip on other devices, and modifying the next dev command in next.config.js to next dev -H 0.0.0.0 didn't work either.

Steps to reproduce

Code snippet:

no change to code or config

If applicable, please provide the steps we should take to reproduce the bug:

All my steps were performed exactly as per the procedure in REDAME.md, apart from that I also tried to pass the following commands and the end result was the same.

git clone https://github.com/streamlit/docs.git
yarn install
yarn dev -H 0.0.0.0

Expected behavior:

Locally deployed documents can also be accessed via ip:port same as via localhost:port.

Actual behavior:

1716988981436

image

Debug info

root@2aac7c6b2fa0:/docs# node -v
v22.2.0
root@2aac7c6b2fa0:/docs# npm -v
10.7.0
root@2aac7c6b2fa0:/docs# yarn -v
1.22.22
  • Docs page link: /
  • npm version: 10.7.0
  • node version: v22.2.0
  • OS version: Ubuntu 24.04
  • Browser version: Chrome 119.0.6045.106/Chromium 102.0.5005.167

GitHubUserC avatar May 29 '24 13:05 GitHubUserC

Thanks for the report. I'm not sure if development mode for docs was intended to support network access. I'll inquire with engineering, but for now, I've marked this as an enhancement request since the primary mode for docs development is through localhost.

sfc-gh-dmatthews avatar Jun 04 '24 22:06 sfc-gh-dmatthews