Is SST even a good choice to deploy Next.js?

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2025

ความคิดเห็น • 62

  • @gadgetboyplaysmc
    @gadgetboyplaysmc ปีที่แล้ว +8

    Awesome insightful content man! Thanks for being transparent. I will give you all the ads you want.

  • @iamshanvy
    @iamshanvy ปีที่แล้ว +4

    Great video!
    I remember AWS were having like separate teams per feature/UI that created a lot of inconsistencies (i might be wrong), but it grows on you, sometimes I prefer that than Vercel, never tried sst curious now, gotta put those aws certificates to work 😂

  • @hqasmei
    @hqasmei ปีที่แล้ว +6

    Yes I've been waiting for this video, thanks Cody didn't disappoint! For automatic deployment have you tried SEED?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว +2

      I have not. If you check it out let me know if it’s worth trying

  • @goldmikanik8274
    @goldmikanik8274 ปีที่แล้ว +6

    Can't I just deploy my next app to AWS ec2 server? Using old fashion Docker containers and github actions?

  • @zohaibakber3056
    @zohaibakber3056 ปีที่แล้ว +10

    sst is amazing but its overwhelming, and their documentation is kinda bad tbh also I think you are the only youtuber that make content about it. Their docs says make apis with aws gateway so I was wondering if trpc just api also works on sst like vercel does? A full project video with sst would be really nice from you since I feel like you are the only one talking about it.

    • @c_g_stewart
      @c_g_stewart ปีที่แล้ว +1

      You could try the SST guide. Probably be easier to convert to Remix than Next

    • @luthecoder
      @luthecoder 11 หลายเดือนก่อน +1

      I second this.. the docs aren’t that good.. @WebDevCody explains it better however a dedicated video on using sst will be appreciated

    • @zohaibakber3056
      @zohaibakber3056 11 หลายเดือนก่อน +2

      @@luthecoder well after 3 months I can say that I'm pretty comfortable with sst now doing a whole bunch of stuff and theres a new version coming which I'm playing with

    • @luthecoder
      @luthecoder 11 หลายเดือนก่อน

      @@zohaibakber3056 That's amazing! I still have a long way to go with it but I'm getting the hang of it for the most part.

    • @Kevinisyoung
      @Kevinisyoung 11 หลายเดือนก่อน

      @@zohaibakber3056 I'm happy to hear you've figured it out. I'm still in the weeds very much trying to figure it out. I'm brand new to infra work, but it is pretty tough for me to get it up and running

  • @saytoga
    @saytoga 2 หลายเดือนก่อน

    The problem is they don't have a simple cost calculator and they are not ready to tell you the estimate cost whn you are planning to move to vercel

  • @i_like_blue_stuff
    @i_like_blue_stuff 11 หลายเดือนก่อน

    Hey Cody, your videos talking about your icon generator inspired me to create my own SaaS webapp, which I've slowly been developing. Do you have any videos or plan on making any going over more in depth how to use SST to deploy a Next.js project, and going over how to setup AWS with that?
    Love the videos though, they've been super insightful!

    • @WebDevCody
      @WebDevCody  11 หลายเดือนก่อน

      I might be able to make another

  • @anibalmancilla8903
    @anibalmancilla8903 ปีที่แล้ว

    Good video, What vsc theme do you use?

  • @mikah1308
    @mikah1308 ปีที่แล้ว +1

    Hi Cody. Hope you have a good day !!!! I just want to ask how's your progress with Remix so far ? Is Next.js still your main framework or anything else in your mind that you want to switch to ?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว +1

      yeah I decided to just go back to next now that server actions are stable. Remix was fine, but I'm already too invested in next to be honest

    • @mikah1308
      @mikah1308 ปีที่แล้ว

      @@WebDevCody Me too, after the last recent release, it does seem quicker for build time and things are stable now. Now that Next is going into the direction of being a full-stack framework, do you think Next will replace Nest or Express in the future ?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว +5

      @@mikah1308 There are pros and cons to having a separate deployable rest api, so no I don't think so. Many companies write their backend apis in java or go, so next would only be used for the frontend side of things, not the api side of things.

    • @oscarljimenez5717
      @oscarljimenez5717 ปีที่แล้ว

      ​@@mikah1308Nextjs or Remix are a perfect spot of BFF(Backend for Frontend), then Nextjs or Remix, talk to a microservices layer. But yeah, when your project is really small you can do it all on Nextjs or Remix, and move it to microservices when you need it.

  • @blazi_0
    @blazi_0 9 หลายเดือนก่อน +1

    Dx of aws is the only reason why there's some company called vercel. Vercel is even built on top of aws it's just the polished version of aws

  • @josantana6259
    @josantana6259 ปีที่แล้ว +2

    The big thing about Vercel (for me) is that if for some reason you need to jump to the Enterprise plan, you'll quickly go from a U$20 to U$3000 bill (last time I've checked). That's the main reason I've moved all the customer assets and APIs to pure AWS on the app I'm currently developing. I've just left the admin frontend on Vercel as it is still running Next.js and it is not in tented to receive a huge traffic. Great content, btw! 🤘

  • @abdulrahmanalsabagh3334
    @abdulrahmanalsabagh3334 ปีที่แล้ว

    Awsome.
    Btw which theme are you using ?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      Lol really?

    • @adarshdhital007
      @adarshdhital007 ปีที่แล้ว

      @@WebDevCody Yes please, I am interested too .

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      @@adarshdhital007 bearded theme stained blue

    • @adarshdhital007
      @adarshdhital007 ปีที่แล้ว

      @@WebDevCody Thankyou

  • @Daniel-fm7yh
    @Daniel-fm7yh ปีที่แล้ว

    Thanks for the video mate. Do you ever get worried about using the sst console given how much access it gets to your aws account?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      I haven’t used sst console yet

  • @nissi2005
    @nissi2005 ปีที่แล้ว

    Did you setup networking using sst or terraform for like public private networks nat gateway, jump server, VPN? Do you have multiple environments in AWS? Multiple orgs? How to prepare AWS before using sst?

  • @luthecoder
    @luthecoder 11 หลายเดือนก่อน

    Can you do a video on how to set IAM permissions for set constructs for next's? I have a dynamoTable setup but I can't read or write to it.. SST gives an error that ...severFuntion doesn't have Permissions for Dynamo:GetItem the error ends with something along the lines of: no identity-based policy allows the dynamodb:GetItem action

    • @WebDevCody
      @WebDevCody  11 หลายเดือนก่อน

      You probably need to use bind

    • @luthecoder
      @luthecoder 11 หลายเดือนก่อน

      @@WebDevCody I did bind the table to the NextJs site contract using bind:[table] and it created the table but I can’t read or write to it.. however when I add the DynamoDB permissions to the NextJs site construct itself instead of on the table construct it works however not sure if that’s the correct way to go about it

  • @st-jn2gk
    @st-jn2gk ปีที่แล้ว +1

    is that an m1, how's it holding up

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว +3

      yup, it's still going strong. I love it

  • @zunnoorainrafi5985
    @zunnoorainrafi5985 ปีที่แล้ว

    Do you know which stack is used by TH-cam?

  • @Luis-ws2hx
    @Luis-ws2hx ปีที่แล้ว

    Hey Cody I was wondering after saw how you setup your sst.config, how do you set your env variables like that? All I could found was setting the env variables through the config constructor, but I still prefer to have them declared manually instead of through the cli, how could someone do that?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว +1

      I just put them in a .env and source before deploying

  • @c_g_stewart
    @c_g_stewart ปีที่แล้ว

    So would you say it’s good to use if you’re using the Pages router? I see they haven’t updated anything for app router. Also have you tried it with Remix? I

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      I think it works for both; I haven't tried sst with remix, but sst does have a module for deploying a remix app

  • @PluralRecursion
    @PluralRecursion ปีที่แล้ว

    I have issues with knowing which next.js version I can run on AWS. Currently I can't get anything to work above "13.4.19". When I try to run more recent versions I run into internal 500 errors. So it not always clear what versions to run and when I can upgrade versions and what version AWS supports currently beyond major releases.

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      on sst? I haven't tried deploying version 14.x yet, but I wouldn't think it would be any different?

    • @PluralRecursion
      @PluralRecursion ปีที่แล้ว

      @@WebDevCody Yes on sst when I try to upgrade to anything above next "13.4.19" or even Next 14. I start getting internal 500 errors. Could be something I haven't configure correctly as it seems to be related to routing. Wondering what version of next you are using?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      @@PluralRecursion I’m probably still on 13.x for my side projects. I’ll try upgrading soon and see if I run into the same issue

  • @greendsnow
    @greendsnow ปีที่แล้ว

    why not CloudFlare Workers?

  • @madimetja-M
    @madimetja-M ปีที่แล้ว

    have tried worked with hashicorp stack?.would this be too much a simple one man project?.

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว

      We use terraform at work; I like terraform but the typescript support with cdk is a lot nicer. I don’t like how it uses cloudformation under the hood

  • @bob_kazamakis
    @bob_kazamakis 4 หลายเดือนก่อน +1

    The title asks a bad question. It should be: why are you trying to use nextjs… at all?

  • @anonymoussloth6687
    @anonymoussloth6687 10 หลายเดือนก่อน

    does sst support next 14?

    • @WebDevCody
      @WebDevCody  10 หลายเดือนก่อน

      Yes

  • @williamx0
    @williamx0 ปีที่แล้ว

    What are your thoughts on self hosting? Reason being that some folks have leftover hardware from things like crypto mining. Some folks farmed with hard drives. Can you discuss things like whether large corps do it, saving even more money say if you store multiple TB’s on s3, it’s cheaper to self host but then you need to account for uptime and security etc. Overall wanted to get your perspective on it as someone working for a company vs me who learns from the internet and not as familiar with how startups or companies in the real world look at it

    • @williamx0
      @williamx0 ปีที่แล้ว

      That is to say… what may be obvious to you is still helpful to point out since I’m not in a professional environment so would be interesting to hear any thoughts you have on self hosting vs aws

    • @williamx0
      @williamx0 ปีที่แล้ว

      Specifically, certain parts like self hosting postgres database maybe, or using minio instead of aws s3. Or when is it a good idea to self host vs not, is it good to start off self hosting when small then go to cloud or start with cloud and if gets expensive then self host?

    • @WebDevCody
      @WebDevCody  ปีที่แล้ว +9

      I personally would never self host anything, especially for large scale projects for paying customers. There is so much hidden work involved with setting up, scaling, security, and maintaining self hosted solutions that it isn't worth it. There is also a lot more than can go wrong. You have to monitor memory and cpu usage to make sure the box doesn't die. You have to monitor your disk storage to make sure it doesn't fill up. You have to figure out a way to setup redundancy for your data in case your entire box catches on fire.
      For you example, let's say you self host postgres. How do you plan to create nightly backups for your database? Where are you storing those backups? Are you storing the backups somewhere safe which can never accidentally be deleted? What's your process of setting up a system or way to restore your database from your backups in case your database is deleted. All of that requires a lot of thinking and time, or you could just use a premade solution that takes care of all that important stuff you never want to happen on a production system. What happens if your postgres database gets a lot of traffic? how do you quickly scale that up?
      Self hosting is fine if you are just wanting to learn how it all works, and it's also fine if you have a dedicated team of professionals who know how to do it correctly and they've done the cost analysis to understand what money will be saved from going down the self hosting approach compared to hosting it on their own datacenter or machines.

    • @theLowestPointInMyLife
      @theLowestPointInMyLife ปีที่แล้ว

      ​@@WebDevCody This is how you backup a postgres database:
      pg_dump -U username -d database -f dump.sql
      This is how you restore it:
      pg_restore -d database dump.sql
      Self hosting is fine if you know what you're doing, you don't need a team, let alone a team of professionals, to run a server. Let's be real also, only a tiny percentage of endeavours will ever generate traffic that requires thinking about scaling. You don't need scale challenging traffic to be successful.

    • @mysterio7385
      @mysterio7385 ปีที่แล้ว

      @@WebDevCody What I did in the past is to set up a daily cron job that would dump my database to s3 and to my personal google drive. I also added email alerts if the job would run into an error. Pretty sure there are more sophisticated solutions out there, but it worked for my smaller application.

  • @butwhothehellknows
    @butwhothehellknows ปีที่แล้ว

    Niiiiice!!!! Good job babe!!

  • @prototype8861
    @prototype8861 3 หลายเดือนก่อน

    What's an SST? 😂