-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Open
Description
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
IndexXuan, ChuChencheng, scarcoco and kleinfreund
Metadata
Metadata
Assignees
Labels
No labels