Consuming a API with SSR, can someone help me? #13513
Unanswered
wilsongomes-swe
asked this question in
Help
Replies: 2 comments 6 replies
-
What I need is: when on server-side target my api-url/sections and procede with the SSR, but when on clien site, target the api-url/sections directly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The getServerSideProps call needs to directly call the API method, not invoke it over HTTP. |
Beta Was this translation helpful? Give feedback.
6 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I need that when my app, when running in client side, the request go to my service api instead of target my next app itself... My client side request is targeting the "http://localhost:3000/_next/data/development/home.json", not the "api-url/sections".
my code bellow:
Thanks so much!!
Beta Was this translation helpful? Give feedback.
All reactions