←back to thread

95 points vednig | 1 comments | | HN request time: 0.209s | source
Show context
Etheryte ◴[] No.42199068[source]
I haven't really followed Next.js and the related ecosystem closely, what does this project do exactly? If I look at Next.js docs [0], they have three options for self-hosting: using a Node server, using a Docker container or as an SPA. Is this project a wrapper around one of those or is it something else entirely? Or to perhaps ask differently, to me it seems you can already self-host Next.js, what's the value add of this specific project?

[0] https://nextjs.org/docs/pages/building-your-application/depl...

replies(6): >>42199156 #>>42199158 #>>42199207 #>>42199214 #>>42199340 #>>42200321 #
greyskull ◴[] No.42199340[source]
In the company I just left, I actually went through the process two or so months ago of migrating their Vercel deployment to AWS. I evaluated several options that are listed on the website and on GitHub, and we landed on using OpenNext via SST, it was a low-pain effort, especially given the CTO's desire to also migrate off of Next.js.

As other commenters have touched on - my understanding is the purpose of OpenNext is to package the output artifacts of a Next build in a way that can be deployed to a serverless environment, analogous to how Vercel does it. The supporting projects like SST and the other links in the repo are to take those OpenNext artifacts and deploy them to infrastructure generally in an opinionated way - additionally supporting some of the "extra" features described in the repository.

The last project I was working on was to then migrate from SST to Fargate, as a persistent process (serverful?) deployment was preferable for various reasons. In that scenario, we would just be running the built in server using the Next.js standalone deployment mode (effectively a `node index.js`). We didn't need the extra functionality covered by OpenNext.

replies(2): >>42199868 #>>42200238 #
kcrwfrd_ ◴[] No.42199868[source]
What’s the CTO’s motivation for migrating off of Next.js? And to what?
replies(2): >>42200927 #>>42202182 #
mdhb ◴[] No.42202182[source]
Next is actively a bad stack run by an incredibly shady company would be a good start
replies(2): >>42202437 #>>42208894 #
1. kcrwfrd_ ◴[] No.42208894[source]
Could you substantiate that?