It seems like there is no Nuxt3 equivalent for nuxt.render https://github.com/nuxt/nuxt/issues/26378
Is there a way I can send a post request with a body to the nuxt server and receive an html response (not a redirect)?
1 messages · Page 1 of 1 (latest)
It seems like there is no Nuxt3 equivalent for nuxt.render https://github.com/nuxt/nuxt/issues/26378
Is there a way I can send a post request with a body to the nuxt server and receive an html response (not a redirect)?
Can you explain your use case? So you want to handle a post and return html?
My use case is for printing documents from a server
I want to be able to send JSON to the server and do SSR with it, rather than fetching JSON on the server during SSR
The page will never be loaded in a web browser, just called as an API
Ok, gotcha, SSR will only work with get requests, I think that is built in deep in the nuxt server. If your json is not too big you could try and url encode it into a query parameter
And then use a get request
Unfortunately that isn't an option because the JSON can be big