Save Your Time - I deployed Next.js to different services (so you don't have to)

24,229
0
Published 2023-04-28
btw, when I say prod logs, I mean I should be able to go back months in the past and view logs. If a service is $20 a month and they require me to sign up for yet another service to get real log support or be able to use complex queries to find logs in the past containing certain strings, it's a no-go for me personally.

- vercel - best UX, but no built-in prod logs, good metrics ui, pricy, first class next support
- amplify - good ux IMO, lowest latency for me, built-in prod logs via cloudwatch, cache issue as mentioned in prior video, hard to figure out how long endpoints took, parsing endpoint metrics is a joke
- sst - cheapest option, serverless, might require learning IaC, performance similar to vercel? open source so might be slow to adopt new next features, lots of DIY
- digital ocean - seems fastest??, but probably no edge computing, cheap, might get the job done, containerized next =(
- netlify - seems good, beta edge functions, price same as vercel, might as well use vercel
- railway - won't let me use them 🤣 but I do love their service when I used it a while back, but containerized next =(
- render - sucks, didn't work for me

00:00 intro
00:56 AWS Amplify
02:56 sst.dev on AWS
05:22 vercel
08:13 netlify
11:10 digital ocean
13:13 render
13:44 railway
14:46 final thoughts


📘 T3 Stack Tutorial: 1017897100294.gumroad.com/l/jipjfm
🤖 SaaS I'm Building: www.icongeneratorai.com/

💬 Discord: discord.gg/4kGbBaa
🔔 Newsletter: newsletter.webdevcody.com/
📁 GitHub: github.com/webdevcody
📺 Twitch: www.twitch.tv/webdevcody
🤖 Website: webdevcody.com/
🐦 Twitter: twitter.com/webdevcody

All Comments (21)
  • Just found your channel like yesterday. Your videos are hella informative and entertaining. Keep up the good work!!
  • @Xbardo
    This is low-key the best webdev youtube channel. Nice video btw! 🎉
  • @maddsua
    Vercel does not own any data-centers, they use AWS. Just a quick note while watching
  • @toshimichi
    I personally like sst, because sst gives you full control over your application in a single configuration file, is fully pay-as-you-go, and free from cold starts with "warm" option that can be enabled in the config. You can even integrate with custom domain names in the config file. No interaction necessary.
  • @maddsua
    Quick note 2: Netlify has logs, you just need to switch timescale from "realtime" to whatever you want to see. And the Analytics button is literally just the one next to Settings (the second one on the right side)
  • @yarrichar
    I would say another advantage of SST is the ability to add SQS and other AWS services easily.
  • @FlintBits
    This video needs more views. Thank you for doing this!
  • I know that linode/Akamai is looking at adding FaaS and serverless infra, so I’d be curious to see how well that stacks up. I know their dx isnt the greatest for more traditional apps, but they are pretty cheap and you do get a ton of control over the infra.
  • @eshw23
    Can you teach us how to deploy a rest api , like Express, Nestjs, or a MERN app online? To something like Aws, Cloud run, or another platform you recommend. Would help us out a lot!
  • @SeibertSwirl
    Good job babe! I’m failing at being the first comment 😅 but I’m here lol love ya
  • @naman_dw
    I’ve been a netlify diehard but recently discovered vercels regional edge functions , which is not possible to do with netlify. That made me switch to vercel
  • @londelidess
    I tried with render and I couldn’t. I am glad it was not only me lol. Nice video!!! I have a next.js app calling open api using langchain so that api calling takes more than 10 sec so my application didn’t work on free vercel free account.
  • @appstuff6565
    Thanks for this Cody! So you're telling me I can use AWS Amplofy for my NEXTJS + Supabase BaaS to be deployed on amplified as easy as any other platforms now? Do you have a video? If so can you please guide me to it? Thanks!
  • @filipjnc
    What do you mean Vercel‘s data center being located farther than AWS? Vercel IS running their lambdas on AWS. And to my knowledge, you can choose your AWS region in Vercel.
  • @Lavah
    Any NodeJS hosting recommendations that also include php?
  • Hey, Cody!! I'm sorry but this question has nothing to do with the content, but I have a question about external component libraries in React. If you have built a component and that component is consumed by different repos in your org and you need to rename that component or change a prop, what are some migration strategies to deal with a situation like this?
  • @deepjyotideb1173
    Amplify also cannot handle server side streaming data for some reason, so that's another point against them.