Server side rendering with express api #17059
Unanswered
EhsanKhalili
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have api express server,
and I want to get some data by getserversideprops from my api,
and render them on my page.
my question is I should call my api like :
const response = await axios.get(
/api/questions
);and pass my data to props, or there is better way to do that.
I think this approach is not ideal, because I am making extra request on server and my TTFB will increase!
Beta Was this translation helpful? Give feedback.
All reactions