Switch between REST and GraphQL in Next.js JSS apps
You can change the data-fetching method after project creation by replacing the JSS services used by the application to interact with Sitecore APIs. Specifically, you need to change between REST and GraphQL services provided by the JSS Layout API and the JSS GraphQL API.
Switch from GraphQL to REST services
To switch the Next.js sample application from GraphQL to REST: