-
Notifications
You must be signed in to change notification settings - Fork 51
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
Make port optional #100
Comments
I can try to resolve this and submit a pull request, but I am not sure why the port would be mandatory in the first place, maybe there's a reason but I don't see it. |
Hi @dekadentno http: {
baseURL: 'https://bla.bla.com/v1'
} |
Hi @ricardogobbosouza |
The options are overwritten, see |
I understand what you are trying to say, but I still get the default port at the end of my baseURL on every request. My Edit: I'll make a repo with my problem this weekend. |
@dekadentno |
I agree with @ricardogobbosouza to use baseURL to override. But could be also nice enhancenment to omit the port if is matching scheme (https/443 http/80) |
Thank you for your answers and your time @ricardogobbosouza @pi0 I hope my mistake will help some future lurkers because I spent more than a week on this issue in vain. |
@dekadentno Actually nothing to sorry and thanks for report. I saw |
What problem does this feature solve?
The port should be optional because there are many public (and non public) APIs that don't require the port in the Request URL.
What does the proposed changes look like?
In
nuxt.config.js
it should be possible to doThe text was updated successfully, but these errors were encountered: