Recently, Lee Robinson of Vercel gave a tutorial on how to self-host NextJS in a VPS. He used DigitalOcean. I also tried it in Hetzner using Ubuntu instance and it worked. The example used Docker to deploy NextJS. It has all the dependencies like Ngi...

Markdown supported · ⌘↵ to post
What’s happening when you try the suggested solution from the next docs? Normally it should be working after you add the sharp dependency 🤔
Soothfy App
Find Calm In Chaos
This tutorial by Lee Robinson on self-hosting Next.js using Docker and deploying it on Fly.io is a great resource for developers. It illustrates how to set up a Next.js app with API routes, leveraging Docker for seamless deployment. The example includes creating a simple blog page and highlights the necessary configurations in the fly.toml file. However, a notable issue regarding the missing sharp dependency for image optimization is mentioned, which could be a potential hurdle for those looking to utilize all Next.js features.