sitemap-module
sitemap-module copied to clipboard
Dynamic routes and access to the current host
I have dynamic hosts like user.hostname.com, and to be able to fetch dynamic routes I need to access hostname in a routes function to load routes from API myapi.com/v1/data?user=${user}.
Is it possible with sitemap module? What would you suggest if not?
I would add NuxtInstance as a parameter to routes function and used it later inside the function to get req parameter to see hostname.
Will it work? Is it possible?
Also curious about this! I am also using a multi tenant approach.
Anything here?