3 ms·
I still dont understand the lie, that its difficult to host next.js. I am hosting several nextjs apps for my day job. We just put them in a docker and throw th
by icemelt8 1y ago
I still dont understand the lie, that its difficult to host next.js.
I am hosting several nextjs apps for my day job. We just put them in a docker and throw them on the server, whats the confusion?
- tonyhart7 1y agomaybe because you did not use that much of serverless function that vercel natively support lets be real here, vercel did not maintain next js for a "free lunch" they want people that use next js be the customer of vercel
- koakuma-chan 1y agoIt's hard to get Next.js to build because it runs your code during build time, and it has some obscure DynamicError shit, I barely got it to work somehow.
- koonsolo 1y agoThe confusion is that there are plenty of front-end developers that have no clue what they are doing, and then blame it on the tool. Believe me, I interview plenty of front-end developers each month. The main problem is that building a website is very different than programming a web application. As a senior software engineer with a Masters degree in CS, NextJS works great for me. Another poster here claims an <Image> drops his Three.js to 2 fps, and of course blames it on NextJS. I work with Three.js, and never seen such issue (React-three-fiber however does have some peculiarities). Before blaming some random tool, maybe first investigate where the problem lies. If you pinpointed it to NextJS, sure, it's NextJS. Before that, don't blame anyone but yourself. I always laugh when I read HN and Lobster commenters. I use NextJS and LLM's, and I leave my competitors in the dust. So yeah, the proof is in the pudding, not in some random folks commenting on the internet. This also reminds me of some commenter here on HN who was angry at Java because their sorting function was unstable for many years :D.
- jowday 1y agoDude, I explicitly replied that I pinpointed it to Next. The moment I removed the Image tag and replaced it with a regular <img />, it resolved itself. I didn’t even say I was using three, did I?
- koonsolo 1y agoMy above text was written before you replied to my other message. And besides, just because using <img> instead of <Image> doesn't imply that the actual issue was in <Image>, it might also be in another part and <Image> triggered it. As I told you, as long as you don't pinpoint the problem, you can't say where the problem lies. Maybe your definition of pinpointing is different than mine.
- d13z 1y agoI think that it depends a lot on how much customisation you have to do on top of NextJS to make it work for your personal use case. For example if you stay as close as possible to the framework defaults, everything is golden. But as soon you start pushing it to the limits the cracks start to appear. Last year I was working on a NextJS app with 15k files, 18k unit tests, 100+ developers in the same repository and a page with hundred of millions of page views daily. Under that conditions NextJS doesn't scale, but again, those conditions are not the majority of the NextJS cases. In that project, we have been using NextJS as a standalone for around 5 years and each time NextJS rollout a major version it take us at least 2 months to be able to upgrade and keep it working.
- icemelt8 1y agoI noticed that I actively got downvoted on this comment, it seems there are malicious actors who are against NextJS and Vercel company for some reason. Instead of being cowards, please reply what features of Next do not work in self hosting through a simple 1 line Docker image?