-
Notifications
You must be signed in to change notification settings - Fork 916
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
limit outputted remote urls to one #1574
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/1u7pn7rr4 |
snowpack/src/commands/dev.ts
Outdated
@@ -1296,7 +1296,8 @@ export async function startDevServer(commandOptions: CommandOptions): Promise<Sn | |||
const ips = Object.values(os.networkInterfaces()) | |||
.reduce((every: os.NetworkInterfaceInfo[], i) => [...every, ...(i || [])], []) | |||
.filter((i) => i.family === 'IPv4' && i.internal === false) | |||
.map((i) => i.address); | |||
.map((i) => i.address) | |||
.slice(0, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I update getServerInfoMessage
to take a single remoteIp
instead of a list of ips
🤔?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, why don't you go ahead and make that change as well if you feel comfortable!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changes
Limit outputted remote URLs to one.
Before:
After:
Testing
I am not sure how to test this.
Docs