I'm having trouble accessing the url in my nuxt js plugin that has all. In short: there is a part in the url that shows me what country people are visiting from and that country should be used in the api calls.
window.location
doesn't work because it's SSR and window isn't available there.
req.headers.host doesn't work because nuxt generate has been run on the staging/production
Edit: The route object won't give me any info on the domain. Only parts after that. For example with www.test.nl/about it will not return www.test.nl anywhere
Is there a way i could get the full url in this scenario?