cli
cli copied to clipboard
Explicitly define port for the Vue web app
Describe the bug
npm run servein the Vue folder- The port used is non-deterministic and often collides with another application that is already running on that port
This is problematic because documentations/tutorial become unreliable. We should explicitly define a port to use in vite.config.ts
To reproduce Steps to reproduce the behavior:
Self explanatory
What version are you using?
Provide the output of the ignite version command.
Ignite CLI version: v0.23.0
Ignite CLI build date: 2022-07-24T18:17:44Z
Ignite CLI source hash: 64df9aef958b3e8bc04b40d9feeb03426075ea89
Your OS: darwin
Your arch: amd64
Your go version: go version go1.18 darwin/amd64
Your uname -a: Darwin scotts-mbp.lan 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 x86_64
Your cwd: /Users/smsunarto/git/argus/checkers/vue
Is on Gitpod: false
Related: https://github.com/ignite/cli/issues/2503
New vite-based templates deterministically launch dev server on port 5173 by default.
let me know if a different port is preferred