Awesome insightful content man! Thanks for being transparent. I will give you all the ads you want.
@iamshanvy Жыл бұрын
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 Жыл бұрын
Yes I've been waiting for this video, thanks Cody didn't disappoint! For automatic deployment have you tried SEED?
@WebDevCody Жыл бұрын
I have not. If you check it out let me know if it’s worth trying
@saytogaАй бұрын
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
@goldmikanik8274 Жыл бұрын
Can't I just deploy my next app to AWS ec2 server? Using old fashion Docker containers and github actions?
@WebDevCody Жыл бұрын
Yeah sure
@luthecoder11 ай бұрын
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
@WebDevCody11 ай бұрын
You probably need to use bind
@luthecoder11 ай бұрын
@@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
@i_like_blue_stuff11 ай бұрын
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!
@WebDevCody11 ай бұрын
I might be able to make another
@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?
@blazi_08 ай бұрын
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 Жыл бұрын
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! 🤘
@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 Жыл бұрын
I just put them in a .env and source before deploying
@anibalmancilla8903 Жыл бұрын
Good video, What vsc theme do you use?
@zohaibakber3056 Жыл бұрын
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 Жыл бұрын
You could try the SST guide. Probably be easier to convert to Remix than Next
@luthecoder11 ай бұрын
I second this.. the docs aren’t that good.. @WebDevCody explains it better however a dedicated video on using sst will be appreciated
@zohaibakber305611 ай бұрын
@@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
@luthecoder11 ай бұрын
@@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.
@Kevinisyoung10 ай бұрын
@@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
@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 Жыл бұрын
on sst? I haven't tried deploying version 14.x yet, but I wouldn't think it would be any different?
@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 Жыл бұрын
@@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
@mikah1308 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
@@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.
@zunnoorainrafi5985 Жыл бұрын
Do you know which stack is used by KZbin?
@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 Жыл бұрын
I think it works for both; I haven't tried sst with remix, but sst does have a module for deploying a remix app
@st-jn2gk Жыл бұрын
is that an m1, how's it holding up
@WebDevCody Жыл бұрын
yup, it's still going strong. I love it
@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 Жыл бұрын
I haven’t used sst console yet
@madimetja-M Жыл бұрын
have tried worked with hashicorp stack?.would this be too much a simple one man project?.
@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
@greendsnow Жыл бұрын
why not CloudFlare Workers?
@abdulrahmanalsabagh3334 Жыл бұрын
Awsome. Btw which theme are you using ?
@WebDevCody Жыл бұрын
Lol really?
@adarshdhital007 Жыл бұрын
@@WebDevCody Yes please, I am interested too .
@WebDevCody Жыл бұрын
@@adarshdhital007 bearded theme stained blue
@adarshdhital007 Жыл бұрын
@@WebDevCody Thankyou
@bob_kazamakis4 ай бұрын
The title asks a bad question. It should be: why are you trying to use nextjs… at all?
@anonymoussloth668710 ай бұрын
does sst support next 14?
@WebDevCody10 ай бұрын
Yes
@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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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.