If I don't care SEO at all then I can use React right? But I care SEO and I also don't want to use a node server.
Because I have an API with PHP and I send a request there then write it to react page. I use PHP with Back-End and React with Front-End but I also care SEO and I don't have a node server. Can i use Next.js without a node server. I've searched for it, and I saw that I don't need a node server with "static" web pages with Next.js but can't i send API requests?
Any page that uses getServerSideProps, Next.js converts that page to a lambda function. You don't need a node server running 24/7 for hosting your application.
Also, if you don't use getServerSideProps, Next.js by default will pre-render your page, this page gets cached on a CDN.
So yes you can make API calls to your PHP backend, without the need for a setting up a nodejs server yourself.
Hope that answers your question.
Thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.