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

host and port is not able to configure from nuxt.config.json #3941

Closed
sweetim opened this issue Sep 22, 2018 · 5 comments · Fixed by #3942
Closed

host and port is not able to configure from nuxt.config.json #3941

sweetim opened this issue Sep 22, 2018 · 5 comments · Fixed by #3942

Comments

@sweetim
Copy link

sweetim commented Sep 22, 2018

Version

v2.0.0

Reproduction link

https://gitlab.com/hosweetim/timx-site/blob/master/nuxt.config.js

Steps to reproduce

add the server object

server: {
        port: 8080,
        host: '0.0.0.0'
},

and run npm start

What is expected ?

The port and host should be configured based on the nuxt.config.json

What is actually happening?

Default value of host and port is used

Additional comments?

Follow this step to configure host and port
Configure in nuxt.config.json https://nuxtjs.org/faq/host-port

But when I run npm start, it is still using the default port and host

This bug report is available on Nuxt community (#c7803)
@ghost ghost added the cmty:bug-report label Sep 22, 2018
@manniL
Copy link
Member

manniL commented Sep 22, 2018

https://gitlab.com/hosweetim/timx-site/blob/master/package.json#L8

You use PORT and HOST there which override your nuxt config values!

@manniL manniL closed this as completed Sep 22, 2018
@ghost
Copy link

ghost commented Sep 22, 2018

This bug-report has been cancelled by @manniL.

@manniL
Copy link
Member

manniL commented Sep 22, 2018

The bug is valid anyway 🤔

(Thanks to @aldarund)

@sweetim
Copy link
Author

sweetim commented Sep 23, 2018

Sorry @manniL for my sloppiness , dint post a link that reproduce this problem, i tried it locally and dint push it to the cloud, when it is not working!

Thanks @aldarund people like you that makes Nuxt community so awesome! ;)
looking forward for it!

@lock
Copy link

lock bot commented Oct 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants