3 ms·
NextJS is just for building the frontend. If you have an API layer written in Deno or whatever then you still need that. Reading online there seems to be a lot
by jemmyw 2y ago
NextJS is just for building the frontend. If you have an API layer written in Deno or whatever then you still need that.
Reading online there seems to be a lot of confusion about what NextJS is with questions like is it better than nodejs, is it a backend server etc.
It runs on a server, on nodejs, but it doesn't provide what most people think of as the backend. It serves the frontend files. It does a bunch of extra things for the frontend.
Presumably there is a way to run your own api code alongside it in the same node instances. Not sure if that's wise or not.
I personally prefer to start off with a plain react project with vite as the bundler and then host that statically without the extra SSR stuff. For an app website I think that's a better approach. For a informational website I'd probably look to other solutions.