Replies: 1 comment 4 replies
-
My personal preference is to create a separate API and then use that API using one of the Next data fetching recommendations. You can still server render no matter where your API is. Or when I'm able, I just integrate my API logic directly into my app using API routes. Is there some functionality you need that the API routes do not offer? |
Beta Was this translation helpful? Give feedback.
4 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.
-
The docs clearly state
Is using the custom server for additionally providing an API the right thing to do or would it be better to create the server completely independent from Next.js?
Since lots of the pages I'm going to create will be server-side rendered I thought it might be a good idea to integrate the API directly into the Next.js app, but everytime I read this statement I become unsure.
Beta Was this translation helpful? Give feedback.
All reactions