I had a wonderful time working with Docker once again, get Docker Desktop here: dockr.ly/4dkjx8a (paid sponsorship). My latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work!
Great Video. I have deployed several NextJS container and it’s all fun and games until the container is behind a Proxy. For some reason NextJS 14 ignores env variables like HTTP_PROXY that node typically can handle. NextJS then is not able to send requests to services outside that proxy network like Auth providers. Do you know how set proxy variables to NextJS so the app can pass proxy’s?
I would love a tutorial on how to deploy postgres and next js in the same docker-compose instead of using Vercel storage. I have it set up, but I keep getting database connection errors because the build step of the next js app requires access to the database
I don't know if this qualifies as being out of the scope of what you typically put out, but can you do a full on tutorial of docker? If it isn't too much to ask for
If I want to use docker compose to create containers for nextjs and postgre in the same time I build because I have problem about after build docker compose not connect to database. Can someone help me or show the example for me pls. Thank you
Very well made tutorial. I am looking for a stack for my side project. So I can use vercel for the edge compute. but my postgresql will sit in 1 region only. So there is no point using edge compute for my nextjs app at all, because the responses will get delayed due to DB query anyway. Is there a good cheap way to handle db latency?
Is Prisma or Drizzle ORM required as database to be part of my tech stack if I use Next.js? If so, why is this option better than the regular database connection setup? And is Neon or Planetscale necessary when using ORM's?
Did I miss the timestamp where you explained why I would need a docker if I can develop on my local machine, push it to git and from there I can deploy it on Vercel?
If you dockerize something, you can deploy it anywhere that you can host docker containers (which is pretty much everywhere). Also allows you to host it locally in an environment that much more closely mirrors the deployed environment
I'm a Front-end Developer. I learn SQL in High School. I want to learn Next.js. Should I learn Algorithm & Data Structures first or just GO for Next.js ?? Please Help
You don't need linked lists and and binary search for the 99 % of front end tasks. If you are already a frontend developer and want to learn the most modern framework - just do it and don't waste your time.
Learn react before you do Nextjs, it's much more important. DSA is important but more so for a back-end developer than a front-end developer. Like the comment above me says, you just need to learn the fundamental data structures.
Hey! trying to follow along with your tutorial! but some how i am getting unknown flag: --watch when i am trying to hot reload docker container, does any one know what is happening ?
Wow great video once more. Do you think you could do a video on dockerizing a next JS app in a TurboRepo. How to bundle all the dependencies and everything. That would be my next step in my company. Thank you for your time!
How do you guys feel about using the server side of Next.js (e.g., for fetching) while you already have an express backend? I do it, but it feels weird to talk about having two servers, lol.
@@kaan1882 they'd probably say Drizzle but Prisma is fine for most applications tbh. Drizzle can be more performant and is more customizable, but Prisma is functional out of the box. When Prisma didn't support joins it was a lot more important.