-
Notifications
You must be signed in to change notification settings - Fork 245
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
baseUrl default port is :3000 even when nuxt use a random port #308
Comments
Setting |
@mrleblanc101 That didn't help my situation, but setting |
For me as well |
This issue is still there, creating a huge usability barrier for Nuxt beginners who have to spend hours debugging why |
@mrleblanc101 You can change axios port using |
work for me with this config axios: {
baseURL: "http://localhost:8000",
browserBaseURL: "http://localhost:8000",
}, |
Version
v5.8.0
Reproduction link
https://codesandbox.io/
Steps to reproduce
nuxt dev
when port 3000 is already in useWhat is expected ?
Axios should use process.env. NUXT_PORT
What is actually happening?
Axios default to port 3000
Additionnal info
I do this because I load json data hosted in the static folder. I can't use import as these fill will be updated regularly via a setInterval
The text was updated successfully, but these errors were encountered: