sst / open-next

Open source Next.js serverless adapter
https://open-next.js.org
MIT License
3.7k stars 111 forks source link

open-next vs nodejs-server #382

Closed smith558 closed 3 months ago

smith558 commented 3 months ago

From your website https://github.com/sst/open-next:

Next.js, unlike Remix or Astro, doesn't have a way to self-host using serverless. You can run it as a Node application. This however doesn't work the same way as it does on Vercel.

Is that the case though? Why is it not enough though just follow the guide at https://nextjs.org/docs/app/building-your-application/deploying#nodejs-server? Am I missing anything? For my use case, I am not interested in Vercel Functions.

I know these are the features that require server runtime:

For those, shouldn't a simple Node.js server be enough?

conico974 commented 3 months ago

I think you missed the point of this sentence

Next.js, unlike Remix or Astro, doesn't have a way to self-host using SERVERLESS

The next sentence then just says

You can run it as a Node application

So yeah you're right a simple Node.js server is enough for those cases. If you're not interested in serverless and want to run next on a single server, then open-next is not the right tools for you.

If we're talking about serverless, then there is a lot of stuff that need to be done to make it work properly.

I'll close this as it's not really an issue If you want to talk more about open-next you can join the discord