Now I'm doing the same thing, and decided to go with Deno because I wanted to learn JavaScript.
Does something like Next replace something like Deno, or does it work with it?
Now I'm doing the same thing, and decided to go with Deno because I wanted to learn JavaScript.
Does something like Next replace something like Deno, or does it work with it?
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.
Let me rephrase: Is NextJS a full back-end, or is it only for presentation? Would you use it in combination with something like Deno, or instead of it?
Of course the NextJS application could call out to a Deno backend as well, but the external app is not required.
- [0] https://nextjs.org/docs/pages/building-your-application/data... - [1] https://nextjs.org/docs/pages/building-your-application/rout...