Dockerize Next.js & Deploy To VPS (SSL / HTTPS, CDN Cloudflare, Caddy, Custom Domain, Hostinger)
👉 Hostinger VPS (use code BYTEGRAD): https://hostinger.com/bytegrad (sponsored by Hostinger & ByteGrad gets commission) This is a good default deploy stack imo. 👉 React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). 👉 Kinde $50 credit for auth and more https://kinde.com/r?kinde_ref=e95bc6f8f17eda7c 👉 Work with me: support@bytegrad.com 👉 React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs 👉 Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript 👉 Professional CSS Course: https://bytegrad.com/courses/professional-css 👉 Web development roadmap: https://email.bytegrad.com 👉 Email newsletter (BIG update soon): https://email.bytegrad.com 👉 Discord: all my courses have a private Discord ⏱️ Timestamps: 00:00 Intro 03:15 Next config: output standalone 03:52 AGENTS.md 04:58 Create Dockerfile with AI 06:30 Dockerfile from Next.js docs 07:51 Docker build (local test) 09:45 Docker build (for VPS) 10:38 Push to GitHub container registry (ghcr.io) 12:13 Setup VPS (Hostinger) 17:27 Pull Docker image onto VPS 18:39 Run Next.js app on VPS 19:51 Caddy 22:36 Custom domain 23:21 Caddy (continued) with HTTPS 25:53 Cloudflare CDN #webdevelopment #reactjs #nextjs Note that these videos may contain mistakes. Always verify yourself that your code is safe and does what you want it to do for your specific situation. ByteGrad and any of its affiliated people are not responsible for mistakes in code. This channel and all its content is owned & operated by ByteGrad Sp. z o.o. with Tax ID: PL6762676561 and KRS-number: 0001125554