You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bud dev shows a nifty external IP address that can be used to visit the dev session from another device on your network. When visiting the external IP, bud serves assets from 0.0.0.0 instead of 192.168.x.x, which results in missing styles
Expected Behavior
The bud dev session shouldn't have any missing assets
Actual Behavior
The bud dev session tries to load assets from 0.0.0.0, which is unreachable unless you're on the same machine as the bud dev session
Steps To Reproduce
yarn dev
Visit the provided external address
version
6.4.5
The text was updated successfully, but these errors were encountered:
- adds `@roots/bud-support/os` with `externalNetworkInterface` utility
- `externalNetworkInterface.ipv4` will return the first non-internal IPv4 address it finds (or `0.0.0.0` as a fallback -- although I'm not sure if this is even possible)
- uses the value of `externalNetworkInterface.ipv4` as the `origin` of the default dev server URL
## todo
- [ ] does this mess anything up with docker and other similar user configs?
- [ ] update docs
- [ ] sage default config will need updating.
## sage
this will override the default set in this PR and enforce 0.0.0.0:
https://github.com/roots/sage/blob/20f92ebe642fe1b97a35f52bf27b220676f7f6df/bud.config.mjs#L37
better to set the port only:
```typescript
bud.serve(3000)
```
refers:
- #1765
## Type of change
**PATCH: backwards compatible change**
This PR includes breaking changes to the following core packages:
- none
This PR includes breaking changes to the follow extensions:
- none
## Dependencies
### Adds
- none
### Removes
- none
Describe the issue
bud dev
shows a nifty external IP address that can be used to visit the dev session from another device on your network. When visiting the external IP, bud serves assets from0.0.0.0
instead of192.168.x.x
, which results in missing stylesExpected Behavior
The bud dev session shouldn't have any missing assets
Actual Behavior
The bud dev session tries to load assets from
0.0.0.0
, which is unreachable unless you're on the same machine as the bud dev sessionSteps To Reproduce
yarn dev
version
6.4.5
The text was updated successfully, but these errors were encountered: