dev server is not using port from options
See original GitHub issueEnvironment
nuxi dev
“nuxt-edge”: “^2.16.0-27226092.034b9901” “@nuxt/bridge”: “npm:@nuxt/bridge-edge”
Describe the bug and expected behavior
I provided server host and port (8080) but nuxt opens server on still localhost:3000 (other options (head, proxy or i18n) is working fine)
Steps to reproduce
// nuxt.config.ts
import { defineNuxtConfig } from "@nuxt/bridge";
export default defineNuxtConfig({
...
server: {
host: "0.0.0.0",
port: 8080,
},
...
});
then
Nuxt CLI v3.0.0-27234503.d5127e9 16:15:14
16:15:14
> Local: http://localhost:3000/
> Network: http://172.25.240.1:3000/
> Network: http://192.168.1.2:3000/
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Is there a way to let webpack dev server use another port?
So on local development, I open localhost:8080, which forwards all requests to localhost:8084 which is the webpack server. However, that service ...
Read more >webpack-dev-server
Just navigate the browser to http://<host>:<port>/webpack-dev-server/<path> . I. e. with the above configuration http://localhost:8080/webpack-dev-server/index.
Read more >DevServer - webpack
If you're using dev-server through the Node.js API, the options in devServer will be ignored. Pass the options as the first parameter instead:...
Read more >webpack-dev-server - npm.io
Usage: webpack serve|server|s [entries...] [options] Run the webpack dev server. Options: -c, --config <value...> Provide path to a webpack configuration file ...
Read more >Configuration Reference | Vue CLI
To use the iframe mode no additional configuration is needed. Just navigate the browser to http://<host>:<port>/webpack-dev-server/<path> to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, both
nuxi dev
andnuxt dev
default to 3000 if bridge is installed, ignoring options. (I don’t think this issue should be closed.)@pi0 There should be a way to load these settings from a config/env file at the very least. Are there any plans to implement this?