generate hreflang in nextjs spa aem integration
Hi, firstly i let you know that i'm new to AEM ecosystem so i haven't already explored all the possibility AEM can offer.
I'm currently on a projet that use AEM SPA in an NextJS environnement my pages are rendered using @61380/aem-react-editable-components on nextjs SSR, using fetchModel that get all my page component models (i think its the way it should work).
Everything work well i can access my pages and view all my components this is great ! but now what i need to do for the SEO is to render hreflang tags in my page head, using nextjs i can easely add some tag the head for this purpose but now what i need to do is to get the current page loaded on NextJS SSR translated varients. How can i achieve that ?