Hello! I have a question for you: I have:
- a Nuxt app set up with
target: 'server'
in the nuxt.config.js - an API that provides me with a template associated with a given path (for example,
/person/maxime
will return template:PersonsSingle
) - a vue component that manages this page (
_pages/person.vue
)
How can I handle this dynamically at runtime? I think it may involve using middlewares, but I'm not sure which one or what the best approach is. Any advice?
PS: I've implemented this system because having two URLs with similar structure (e.g., /person/maxime
and /person/sam
) could result in entirely different templates. Unfortunately, I have to work with this setup :/