question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What problem does this feature solve?

In most cases, the port is our user-defined port. But sometimes users will start multiple services. At this time vue-cli will use portfinder to start a new port, but the port is not exposed.

proxy: {
 target: `http://localhost:${port}/mock`,
}

Since the port has changed, the request cannot be proxy correctly.

What does the proposed API look like?

process.env.VUE_CLI.port Or any other way

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:25 (13 by maintainers)

github_iconTop GitHub Comments

22reactions
xsbchencommented, Apr 10, 2019

On my macbook:

// vue.config.js
{
  devServer: {
    port: 80
  }
}

but after run vue-cli-service serve , it change to 1024.

set port in vue.config.js means I just want to set the port to what i want, but the result is not what i want.

3reactions
PanJiaChencommented, Apr 10, 2019

portfinder is not very much needed in many scenarios, it is more reasonable to directly prompt it that the port is occupied.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ACE Appendix D-Export Port Codes
ACE Appendix D-Export Port Codes ... This page provides the message formats and technical specifications necessary to electronically transmit data ...
Read more >
How to Choose the Correct Port of Export - Census Bureau
Per the Foreign Trade Regulations (FTR) 30.1(c), the port of export is the U.S. Customs and Border Protection (CBP) seaport or airport where...
Read more >
Port of Export | DHL
MyDHL Port of Export and Carrier Code Tool. Shipment Date. October. 10th. Tomorrow. October. 11th. Tuesday. October. 12th. Wednesday. October.
Read more >
Exporting Ports
Export Ports Dialog Ports are used to connect Transforms to each other and to MxVDev. To connect a port to MxVDev so it...
Read more >
U.S. Ports of Export :: International Freight Forwarding - ShipAll
Your shipment can leave the United States from one of over 300 ports. Each port sets it's own fees and export documentation rules,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found