-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix demo development inside a dev container #21261
Conversation
WalkthroughWalkthroughThe main changes involve improving the development container setup by adding a specific environment variable and adjusting related scripts. A new environment variable Changes
Sequence Diagram(s)sequenceDiagram
participant DevContainer as Development Container
participant Script as env.cjs
participant Webpack as webpack.js
DevContainer->>Script: Reads `DEV_CONTAINER` environment variable
Script->>Webpack: Calls `isDevContainer()`
Webpack->>Webpack: Adjusts `listenHost` to "0.0.0.0" if `isDevContainer()` returns true
Tip AI model upgrade
|
Breaking change
Proposed change
Dev container port forwarding got stuck with the listening interface check. This fixes it by listening to all interfaces when run inside a dev container.
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
Summary by CodeRabbit
DEV_CONTAINER
to enhance development container detection.