Curious to hear from others who have tried this. When did you last try it and what was the experience like?
I currently host on Vercel, but I want to move everything to AWS to simplify testing, deployments, and secret management.
Curious to hear from others who have tried this. When did you last try it and what was the experience like?
I currently host on Vercel, but I want to move everything to AWS to simplify testing, deployments, and secret management.
I’m working on an app thats currently in Dev and going to prod soon. Works very well imo, no issues, using static export with nextjs 14 so I am not using any run time SSR which ends up cheaper on amplify.
Why Amplify? Unless you need SSR, I’d just host on S3/Cloudfront. Deployments with GitHub actions.
Awesome, yeah I’ll mostly just be needing static export but some components may need runtime SSR
Using it now for few applications. Works great, no issues. Make sure to use Gen2
Yeah I need SSR. Otherwise I’d just use plain React and host on S3/CF like you said
Sweet, will try it out
Curious what we could have done better at Vercel? Open to feedback
Don’t do it, I’ve tried Amplify with NextJS + Payload CMS. I believe they are using lambda under the hood, cold start caused page load to take anywhere from 8 to 20 seconds, completely unacceptable for a marketing page. I moved to ECS Fargate hosted NextJS application and have not had any issues since.
What on earth is that lambda doing to take that long to start?
No clue, I did nothing crazy. Started with a barebones Payload CMS project and kept adding to it, I spent about 2 weeks doing everything I could to improve the cold start, but nothing seemed to work. After the move to ECS Fargate the page load was extremely fast (note: it’s behind Cloudfront and ELB).
Fair enough. Worth noting that OP could probably look at AWS AppRunner before ECS fargate if they need simplicity, since AppRunner is backed by ECS fargate, but handles setting up load balancers, internet ingress and egress (or vpc ingress and ingress), X-Ray tracing, and certificates with SNI.
Running a nextjs15 application in amplify for a SaaS platform. It’s probably the easiest it’s been to deploy next apps ever. And it’s super cheap compared to service-on-top solutions.
Tbh I’ve just been working with AWS for several years now, and I feel a lot more comfortable with it. I want to keep everything under the same roof without needing to depend on third-party vendors for integrations.
Although there is one feature that’ll probably make me stay, and that is a full-fledged CD pipeline. Currently the frontend is in Vercel and the backend is in AWS, but I want to deploy and test the full stack together. Afaik, I can only deploy Vercel projects with the current CD functionality. This means that setting up a pipeline (like in Gitlab) to achieve what I want is very cumbersome.
If I have everything in AWS, I can easily create a CodePipeline that deploys the IaC to a preview account, run tests, then promote to prod.
CodePipeline can achieve the functionality I want, but I’m in no way excited to use it. The UI is pretty bad and having to switch AWS accounts just to look at deployment status is a pretty bad dev experience. If Vercel can build a CD pipeline solution that has a great UI, supports triggers on multiple repositories, allows for promotions to depend on automated tests, and natively supports rollbacks then I’ll definitely use it.
Good stuff thanks for sharing! I haven’t tried AppRunner, will also take a look at this in the future. I had ECS Fargate running for other services so it was really easy to move this over, but Fargate may be overkill if you’re trying to do something quick and simple.
then you’re not runnin a marketing page you’re running a cms. not sure what you expected
muh, boi. run open-next and use a cdk construct.
bro, i love that you’re here doing this. I’m not a heavy user myself but things like this keeps you guys at the top of the list for any of my customers not wanting aws. keep up the good work
That’s fair, appreciate the feedback. If you want to keep your entire CI pipeline in AWS, you can still deploy to Vercel using our CLI/API or SDK. We also have a Terraform provider.
Are you saying if Vercel had generic CI for tests, backend things, etc – you would just run all of that on Vercel?
Notably, we do have custom environments, promotions, instant rollbacks, etc already in our CI product.
Let me know how it goes! And what feedback you have. It should just deploy seamlessly
Regarding the cold start comment - the team has done a ton of work here and is definitely at parity with Vercel or others