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
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.
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.
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.
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
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String