sitemap-module icon indicating copy to clipboard operation
sitemap-module copied to clipboard

Dynamic routes and access to the current host

Open melnikovdv opened this issue 4 years ago • 3 comments

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?

melnikovdv avatar Jul 29 '21 15:07 melnikovdv

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?

melnikovdv avatar Aug 03 '21 14:08 melnikovdv

Also curious about this! I am also using a multi tenant approach.

rylax avatar Aug 16 '21 22:08 rylax

Anything here?

LMarcinkowski avatar Oct 06 '23 12:10 LMarcinkowski