How do I obtain the domain name of the current site from boot/axios.js #13392
Unanswered
gh81997167
asked this question in
CLI - SSR mode
Replies: 1 comment
-
You can still use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our request is based on the website's own domain name to request the interface, for example, the corresponding API request of a.com is a.com/api, the corresponding API request of b.com is b.com/api, Found unavailable windos.localhost.host and process.env.api_url in boot/axios.js
Process.env. API_URL can be used in the development environment but not in the production environment
Is there any way to configure automatic domain name acquisition for the current site in boot/axios.js
Beta Was this translation helpful? Give feedback.
All reactions