3 ms·
> back end with NextJs Can you actually use NextJS as a back end? It's been a few years since I last worked with it. I recall it ran a server we had to deploy,
by eric-hu 4y ago
> back end with NextJs
Can you actually use NextJS as a back end? It's been a few years since I last worked with it. I recall it ran a server we had to deploy, but that server only did some server side rendering of the frontend.
- cookrn 4y agoYes, it has a straightforward concept of /api/* endpoints that can be leveraged for any type of backend.
- jhanschoo 4y agoYes (https://nextjs.org/docs/api-routes/introduction); https://nextjs.org/docs/api-routes/introduction); you can even have libraries and frameworks that use API routes as a target.
- bobolino123 4y agoSure. If you deploy on Vercel you can have it serverless. If you are careful with bundles and providers you can even use only one nextjs project for the website, docs, auth, webapp, public api and whatnot.