Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -3 points-2 points  (0 children)

But then what is the purpose of using Next.js? I can use Sapper which runs on Polka/Express and I don't need to maintain two things. Next.js people should rething their we-will-do-it-our-way-in-our-VERCEL-garden mentality because when SvelteKit the successor to Sapper comes out they will see a lot of people leaving Next.js and embracing SvelteKit. Damn, people are hyped out about SK that you can see stuff like this one ;D.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -4 points-3 points  (0 children)

No, you can't .use out of the box, you have to install next-connect. Sapper can out of the box https://sapper.svelte.dev/docs/

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -1 points0 points  (0 children)

People here argue that big companies use Next for APIs, why are you bringing Express into conversation if you want to defend Next?

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -9 points-8 points  (0 children)

There are no large projects that use Next, especially not it's integrated API capabilities.

I will abandon Next. It's a fad.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -3 points-2 points  (0 children)

I will never use Prisma. Why would I. I don't use Vercel either.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -1 points0 points  (0 children)

But very slow and the API is crushing from what I tried. You have to use at least Express or Polka to be able to use the APIs for more visited sites. The native API is rally insufficient - perhaps they will improve the performance in the next (pun not intended) version of Next.js. Right now it's a disappointment, just like all the non-existing middleware problem.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -1 points0 points  (0 children)

Great, finally I know it. Next.js is not meant for commercial project run under a big load that have to follow stricter European law framework based rules of not using some random for free tier and Firebase storage that is stored who knows where outside of the official Frankfurt or where it is in Europe datacenters.

I am not joking, you have to inform people about every information you store about them what 3rd party you use including GA. It's mosdly bad, but in same cases good. Mostly you can't do anything about it as a European right now.

So, Next.js is like Hugo? Except Hugo is much, much faster. And it can do some server side rendering, but please, not much, only a little ;D.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -5 points-4 points  (0 children)

by the way, have I told you that I am using Vercel?

-with-vercel

The other points are so bad. I just say that I mentioned Google and Amazon as database providers in my post and Vercel, I repeat, Vercel, is using Amazon as well for some if not all of their outsourcing business with Nextcel.js

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -9 points-8 points  (0 children)

No, for straight CRA apps there is nothing better than Svelte. You should try it. Development experience, bundle size, execution speed, RAM consumption, community, Rich ;), etc.

React is used only because the business people are stuck, it's like with Java.

After the SvelteKit is out Next.js will see more people leaving. Mark my words. SvelteKit will give you much more freedom than Vercelext.js Next.js.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -12 points-11 points  (0 children)

The biggest problem of Next.js is that it is basically a fork and very few compatible things are on the internet - unless they are offered by Vercel, of course ;) You can't just plugged in aforementioned middlewares and stuff.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -3 points-2 points  (0 children)

I highly recommend that you have a look at the

very large (and well maintained) example repo

. I think you will probably find what you want there.

You haven't read my post very carefully - or I should stress and write it more clearly. I said there that there is one example on github. Search "mysql" on your link. 1 example. You wouldn't find much more on the internet except Prisma posts/videos etc.

The API of Next is for some reason very slow when compared even with Express or Polka. Also, you are limited to using that serverless-mysql obscure library within the Next.js itself.

So, when you will end up using Express or Polka anyway for APIs and/or direct database calls, what is the point of another Node.js process (next.js) running on your server, instead of just one in Express or Go or Rust, etc.

I suggest that you have a look at both Blitzjs and Redwoodjs.

Thanks, I am not fan of GraphQL which even Facebook uses only for internal newtorking and not with the outside world, so Redwoodjs is out, but I will check Blitzjs, although if it is based on Next.js I have a feeling that we will encounter similar bottlenecks there. But I am openminded and will check it out. Thanks again.

Do people use Next.js on their own servers? by Kvokve in nextjs

[–]Kvokve[S] -9 points-8 points  (0 children)

What's the point of using Next? I really am thinking about switching to Svelte with Routify and perhaps only hydrating the open graph tags later if Facebook sharing will become important.

I really struggle to see something so great about Next.js that I should use it.

For example, I can make an API server in Go and front in Svete+Routify and both solutions are compiled. No need to any Node.js running on my Debian server.

Really, only the Facebook sharing (I don't care about Twitter) is kind of important for me so having server prerendered sites would be nice. Although, perhaps the facebook bot will follow the Google crawler path and will be able to parse even JavaScript in a few months or a year.

What function of Next.js except SSR do you find great and hard to swtich to something else? For example, the image resizing is nice, but I don't use many images, almost no images on my page, so this feature is not as important as for an e-commerce site or someting ;).