Accessing SSR HTML Head and Body through Specific APIs in a NuxtJS Project #25355
Unanswered
Michael0520
asked this question in
Questions (Nuxt 2)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my NuxtJS project, I am setting up a functionality where end users can access the server-side rendered (SSR) HTML of a specific page. They can do this by using two distinct API endpoints:
https://demo.com/${pageName}/api/getHTML/head
https://demo.com/${pageName}/api/getHTML/body
These APIs are designed to extract either the head or body part of the HTML content, depending on the endpoint used, from the SSR output of any given page. I am looking for advice or best practices on implementing these APIs efficiently and effectively in the NuxtJS framework.
Beta Was this translation helpful? Give feedback.
All reactions