What’s the Best Way to Deploy a NextJS App with NodeJS Support?

0
1
Asked By CuriousCoder99 On

I'm trying to get my NextJS app up and running, but I really need a NodeJS runtime because I have some Prisma functions and other APIs that don't work with edge runtime. Unfortunately, I can't go with Cloudflare Pages. I'm considering a few options like Vercel (but the free tier won't work for my organization), hosting it directly on AWS, or using sst.dev. Are there any other good options I should consider?

4 Answers

Answered By ContainerKing21 On

If you're comfortable with Docker, using AWS ECS could be an awesome way to deploy your app. That said, some folks find Heroku to be a more straightforward solution for projects like yours.

Answered By CloudySky99 On

I recommend checking out openNext.js. It could help streamline your deployment without needing to completely overhaul your setup. Just make sure it supports all your necessary features first.

Answered By DevDude42 On

If you're looking for a flexible option, I always go with AWS! A basic EC2 server costs about $40 a month. It's a hassle to set up, but the flexibility is worth it. Just keep in mind you might need to handle some scaling and management on your end.

Answered By LambdaLover88 On

You might want to consider converting your server.js into several AWS Lambda functions. It's a cheaper alternative, but it can be a lot of work if your API is large.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.