Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Yes (https://nextjs.org/docs/api-routes/introduction); you can even have libraries and frameworks that use API routes as a target.


Sure. 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.


Yes, it has a straightforward concept of /api/* endpoints that can be leveraged for any type of backend.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: