Skip to content
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

Merged
merged 2 commits into from
Nov 12, 2020
Merged

limit outputted remote urls to one #1574

merged 2 commits into from
Nov 12, 2020

Conversation

ducaale
Copy link
Contributor

@ducaale ducaale commented Nov 10, 2020

Changes

Limit outputted remote URLs to one.

Before:

snowpack

  http://localhost:8080 • http://192.168.1.144:8080 • http://192.168.64.1:8080 • http://172.20.192.1:8080 • http://172.23.48.1:8080 • http://172.31.176.1:8080 • http://172.19.96.1:8080
  Server started in 167ms.

After:

snowpack

  http://localhost:8080 • http://192.168.1.144:8080
  Server started in 167ms.

Testing

I am not sure how to test this.

Docs

  • N/A

@vercel
Copy link

vercel bot commented Nov 10, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/1u7pn7rr4
✅ Preview: https://snowpack-git-limit-outputted-urls.pikapkg.vercel.app

@@ -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);
Copy link
Contributor Author

@ducaale ducaale Nov 10, 2020

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 🤔?

Copy link
Owner

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Owner

@FredKSchott FredKSchott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@FredKSchott FredKSchott merged commit b8aba50 into FredKSchott:master Nov 12, 2020
@ducaale ducaale deleted the limit-outputted-urls branch November 12, 2020 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants