My Favorite & Cheapest Way to Deploy Next.js (and how to do it yourself)

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 77

  • @WebDevCody
    @WebDevCody  Рік тому +18

    So I actually just tried deploying from my laptop and it worked fine, so the whole github actions part of this video might not even be necessary (although I would recommend it for automation). The fact that we include the linux arm in the binaryTargets allows SST to bundle the necessary binaries for your lambda function, so disregard a lot of what I said about you can't deploy from your laptop. Hope you found this helpful, cheers.

    • @sethmatthews7970
      @sethmatthews7970 Рік тому +4

      I’m really happy you went through the GitHub actions part tbh

    • @paulclarke4099
      @paulclarke4099 Рік тому +3

      Do you have any idea why Vercel deployments are so much faster than SST, I assume underneath Vercel still must use CloudFormation and or CDK as well? Would be good to ask Dax (SST creator) about that. Would also be great if you had an interview with him too.

  • @SeibertSwirl
    @SeibertSwirl Рік тому +52

    Looking good babe! I forgot you shaved your beard and was like “who is this?!!” For a split second. Good job as always! And I love you! Also first! 👸🏿
    For those that always wonder why I comment on all his videos… I am his wife, I love watching him do what he loves, I am in heartfailure and if my time on earth is short I want Cody to know and remember I always support his dreams and also if he ever gets remarried I want her to know I was cool like that 😂
    Love ya babe!

    • @justine_chang39
      @justine_chang39 Рік тому +7

      sweeeeeet as heck!!

    • @WebDevCody
      @WebDevCody  Рік тому +10

      Lol woww thanks babe, I ain’t getting remarried you nub, no one can replace you. Love you so much!

    • @okage_
      @okage_ Рік тому +6

      praying for your good health 🙏🙏

    • @armaandhanji7151
      @armaandhanji7151 Рік тому +1

      What a lovely comment, this made my day, thank you :)!

    • @appstuff6565
      @appstuff6565 3 місяці тому

      @@WebDevCody im gonna cry here

  • @lotw3
    @lotw3 Рік тому +12

    I recently discovered your channel, and the video’s quality are just top notch!please make more videos about sst. This videos helps a a lot! Thank you Cody!

  • @JoeceOfficial
    @JoeceOfficial 8 місяців тому

    Just opened this video on holiday and it was so EASY to follow despite me not having my projects open. The step by step and your reasoning is helpful as always. As a someone who’s been slowly trying to understand next.js and deployments more, this gives me a much better picture that if I were to just read the docs. Thank you!

  • @Flash136
    @Flash136 Рік тому +3

    I recently just discovered SST. It's an amazing tool, but I don't see very many tutorials about it, so Thank You for this. :)

  • @paulclarke4099
    @paulclarke4099 Рік тому +1

    Really appreciate you covering this topic and paying attention to people's comments. Thank you so much for all the fantastic content you create.

  • @miha7273
    @miha7273 Рік тому +4

    Thank you so much for making these videos. You give me inspiration.

  • @euanmorgann
    @euanmorgann Рік тому

    This is amazing, I would love more in depth videos on deployment and CI/CD with Nextjs

  • @jcen1918
    @jcen1918 11 місяців тому

    This was SOOOO helpful. Thank you! Set up my own SST-AWS-based Next app w/ github actions!

  • @gavinlindridge
    @gavinlindridge Рік тому +1

    Thank you SOOOOO much for this, i will be testing this out tommorow 👍

  • @Paul_Aderoju
    @Paul_Aderoju 11 місяців тому

    Discovering your channel is my highlight for the month of September 🙌

  • @pez5491
    @pez5491 6 місяців тому

    my first deploy in my life successfull thanks to you mate!

  • @amershboul9107
    @amershboul9107 2 місяці тому

    you always save my life dude! Special thanks

  • @49desprolijo
    @49desprolijo Рік тому

    dude i f* love your content! keep going this is awesomeeeee 🔥

  • @FlygOnLiTe
    @FlygOnLiTe Рік тому

    If my applications ever outgrow the free tier on vercel, I know what I'm using now, thank you!

  • @roach_iam
    @roach_iam Рік тому +2

    Careful making those aws secrets available in the env for the entire run. I'd put them only under the deploy step.

    • @WebDevCody
      @WebDevCody  Рік тому

      is the concern that a package could scrape that info when doing an npm ci?

    • @roach_iam
      @roach_iam Рік тому

      @@WebDevCody Yep. Especially with postinstall scripts

    • @gavinlindridge
      @gavinlindridge Рік тому

      Agreed I'd just use those secrets inline so they cannot be used anywhere else 👍

  • @rajusharma823
    @rajusharma823 Рік тому

    The beard on was cool :)

  • @appstuff6565
    @appstuff6565 3 місяці тому

    hey webdev cody, i wanted to ask,do u have a aws amplify sst vs digital ocean services?

  • @L1ght1000
    @L1ght1000 Рік тому +1

    Hello, would love if you gave me small advice. I'm going to deploy Next app somewhere, and there will be a lot of requests to my API from external applications. It could probably be 1 request every couple of seconds. Where should I host better in terms of prices and deployment complexity? Thanks in advance!

  • @mitchellcook9114
    @mitchellcook9114 Рік тому +3

    Is there a comparison of the AWS bill using SST over time compared to Vercel? I am sure SST is generating a lot of resources, each with their own usage costs

    • @WebDevCody
      @WebDevCody  Рік тому +3

      I already made a video a few days ago about how much my saas product costs monthly, it’s cents. It all depends on traffic as well.

    • @mitchellcook9114
      @mitchellcook9114 Рік тому

      @@WebDevCody Nice, I'll look for it!

  • @user-zk7ww8to5z
    @user-zk7ww8to5z 5 місяців тому

    thank you

  • @rafiul984
    @rafiul984 Рік тому

    can you do a video on supabase auth + drizzle ? i think it makes an interesting combo

  • @mithushanjalangan5132
    @mithushanjalangan5132 Рік тому

    Great run through! How are pricing compared to the deploying to Vercel ?

  • @CavalloGuido
    @CavalloGuido Рік тому +1

    I'm confused, every time that I deployed a change to production environment with SST, will it setup a new infrastructure for me? Or it sets it up the first time and nextime takes the id of the resourse previously created and only aplies the code changes?

    • @WebDevCody
      @WebDevCody  Рік тому +1

      It’ll create and update. So the first deploy takes a while to spin up all resources, and future deploys just updates anything you change

    • @CavalloGuido
      @CavalloGuido Рік тому

      @@WebDevCody thanks 👍

  • @spiffjekey-green4034
    @spiffjekey-green4034 10 місяців тому

    This is a really good content, but I have one question though, the was user account used. What permissions should be appropriate for it cos I am creating a user account now with this fullAdministativeAccess but not giving it console access

  • @Kimitri
    @Kimitri 5 місяців тому

    I have one question, is safe allow SST to collect Anonymous Telemetry from my Nextjs app? Because I notice that I have an option to disable it.

    • @WebDevCody
      @WebDevCody  5 місяців тому +1

      yeah probably, just disable it anyway if you have concerns; it's probably just to help their team improve their tools

  • @Kimitri
    @Kimitri 5 місяців тому

    Maybe I'm making to much questions I'm sorry haha, but I need to set up a load balancer to use it or the SST already set up it?

    • @WebDevCody
      @WebDevCody  5 місяців тому

      No sst uses cloudfront which acts as your router

  • @anonymoussloth6687
    @anonymoussloth6687 5 місяців тому

    after we do npx sst deploy and it deploys our app to CloudFront, if I want to shut the app down so that it doesn't incur any costs, what do I do for that?

    • @WebDevCody
      @WebDevCody  5 місяців тому

      Sst destroy I think?

  • @Steel0079
    @Steel0079 Рік тому

    Dude, your channel is a goldmine.

  • @Kimitri
    @Kimitri 5 місяців тому

    I have one question, the needed permissions the AWS user need to deploy sst is the same as than Serverless framework?

    • @WebDevCody
      @WebDevCody  5 місяців тому +1

      Usually admin access

    • @Kimitri
      @Kimitri 5 місяців тому

      thank you so much@@WebDevCody

  • @thanhtringuyen5553
    @thanhtringuyen5553 9 місяців тому

    Hi,
    First, your video is amazing. Thanks for what you are doing.
    I have a question. I noticed that SST stores the state of deployment inside the folder .sst. So do we need to commit this folder into git?
    If we don't need to, will SST create a whole new stack in the next deployment?
    Thank you in advance.

    • @WebDevCody
      @WebDevCody  9 місяців тому

      I don't think we need to commit that

  • @N8X4TE
    @N8X4TE 10 місяців тому

    Hi cody, it worked like a charm, successfully deployed my next app following the video. Do u know how to increase the lambda execution timeout duration? Seems like its set to 10s by default?

    • @WebDevCody
      @WebDevCody  10 місяців тому

      You can override the timeouts in the configurations

  • @frontforumfocus
    @frontforumfocus Рік тому +1

    lets gooooooooooooooo

  • @darialyphia
    @darialyphia Рік тому +4

    where beard

    • @WebDevCody
      @WebDevCody  Рік тому +8

      wife likes clean face - I make clean face 🤣

    • @SeibertSwirl
      @SeibertSwirl Рік тому

      @@WebDevCody Lmaooooooo

    • @rohitreddy6794
      @rohitreddy6794 Рік тому

      ​@@WebDevCodyRIP man. You looked really good with a beard

  • @thachholeminh4807
    @thachholeminh4807 Рік тому

    Do you have the ci for gitlab. I try to convert from the github yaml to gitlab but it is always stuck at the aws credentials which happen at npx deploy. I try to config the env values but got no luck. In fact I can deploy locally. So I believe there is somekind of aws credentials different between github and gitlab and like the image they are using.

    • @WebDevCody
      @WebDevCody  Рік тому +1

      I've never used gitlab. it sounds like you need to add credentials into gitlab somehow?

  • @MohammedTariqSaiyad
    @MohammedTariqSaiyad Рік тому

    Hi Cody, thank you for sharing this. I deployed a next13 app with sst yesterday, and I was wondering if you could verify what I've been seeing.
    Basically all dynamic routes like those from product/[id]/page.tsx are not getting cached on cloud front, even though I've set a revalidation property on the fetch call. Have you noticed this too?

    • @WebDevCody
      @WebDevCody  Рік тому +2

      I’ll have to try with the app router, I’ve mainly been using the pages router

    • @3IMAD69
      @3IMAD69 10 місяців тому

      any update with the app router?

  • @additionaddict5524
    @additionaddict5524 Рік тому +1

    Is it really sst if you’re using supabase?

    • @WebDevCody
      @WebDevCody  Рік тому +2

      yes, I'm just using sst to deploy the next application. You don't have to use dynamodb just because you are using sst. I mainly used supabase because I'm at my planetscale limit of databases; I'm just using supabase to get a free posgres database for this tutorial.

  • @arthur936
    @arthur936 Рік тому

    Hey man, any chance to update the T3 Stack Tutorial on gumroad with a version of it deployed with SST (or a migration from amplify to sst)?

    • @WebDevCody
      @WebDevCody  Рік тому +1

      I could make a separate branch may e

  • @don1041
    @don1041 10 місяців тому

    i notice you use nextjs 13.4.2 instead of the latest version (13.5.*). do you experience some bugs when using the latest one with sst? if so, do you find it ok to get stuck using that version instead of the latest one?
    this makes me think to switch back to just deploying stuff in a vps using docker.

    • @WebDevCody
      @WebDevCody  10 місяців тому

      Idk I haven’t tried the latest version

  • @ToddDunning
    @ToddDunning Рік тому +5

    Man imagine spending the time it takes to figure out how to scrape people’s AWS keys, then use them to mine Bitcoin. For gods sake do something productive with those skills!

  • @Light-nn6hn
    @Light-nn6hn Рік тому

    Your beard looks really nice and suits u really well, don't shave it.

    • @WebDevCody
      @WebDevCody  Рік тому

      My wife likes a clean face 😂 her opinions trumps everyone elses

  • @PostMeridianLyf
    @PostMeridianLyf Рік тому

    Cheapest? I deploy for free on GCP every day, New apps, projects, dbs, even ci/cd pipelines. The free tier covers it all.