Static GitHub Issues

[2964] Is SSR useless if the request url is not sure?

prev: How to handle route param updates
next: Update router base dynamically

What is my problem? If the domain name of the access server is a.web.com, then the request address of the API interface is a.api.com,if the domain name is b.web.com,then the request address is b.api.com. This means I can't request an interface on the server side, because I can't get to window.location.host, so I don't know the address of the interface to be requested.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2572">#c2572</a>)</em></sub></div>