Unable to make API call on server

https://auction-dev.ycspl.in/weeklyauction while accessing this endpoint my network request is made on the local server IP where I have done the yarn start how to fix this
Vue Storefront
Build Setup
10 Replies
Yatharth
YatharthOP2y ago
Basically my middleware URL that gets created should be same as my domain but it is not and I am unsure where to change this any idea how to fix this @rohrig any solution for this guys? @skirianov @rohrig
skirianov
skirianov2y ago
I can’t check it fully now, I’m away from laptop, but I suppose your config is wrong. Check the guide where you host the application. Most probably you should configure your url to 0.0.0.0 or similar
Yatharth
YatharthOP2y ago
this is my nuxt config can you please check whenever you have time what needs to be changed?
Yatharth
YatharthOP2y ago
@skirianov thanks in advance! any update guys on this issue it is a blocker for me I will be thankful if I got some help ASAP @skirianov @rohrig
skirianov
skirianov2y ago
Where are you hosting your application?
Yatharth
YatharthOP2y ago
on nginx private server what do you think might be the issue? @skirianov
skirianov
skirianov2y ago
You’ve set your .env to production right? I think some issue with the server/.env config. Basically looks like your server IP is used instead of host name, so maybe host configuration
Yatharth
YatharthOP2y ago
where do we configure the host I am unable to figure that out. @skirianov
skirianov
skirianov2y ago
I’m not nginx expert really, but I think it should be somewhere in nginx config. Check Stackoverflow, cause I really don’t know your setup Did that help? I mean, did you figure it out?
Yatharth
YatharthOP2y ago
Yep the issue is with 2.7.5 version in my case I downgraded it to 2.5.13 and it worked
Want results from more Discord servers?
Add your server