Тёмный

How to Deploy a Next.js app to a Custom Server - NOT Vercel! (Full Beginner Tutorial) 

Sonny Sangha
Подписаться 274 тыс.
Просмотров 76 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 160   
@biLLie_wiLLie
@biLLie_wiLLie Год назад
Finally someone cares about it
@nodirbeksharipov458
@nodirbeksharipov458 Год назад
As a senior software engineer, I know all of these, yet still watched and enjoyed every second of it, kudos to you 🥳
@wazirshehryarali4375
@wazirshehryarali4375 3 месяца назад
Hi, Can I know where to store the env variables. I am stuck there. please hepl
@milencja3094
@milencja3094 Месяц назад
@@wazirshehryarali4375 hi! i located environmets in file .env.production and its works, but i don't know is it correct :)
@divyanshutripathy3484
@divyanshutripathy3484 2 месяца назад
This is literal gold. I didn't find such comprehensive guide any where else.
@crysis992
@crysis992 Год назад
A video on how to setup auto deployment on a custom server would be awesome. So our app gets build on the server automatically with the latest changes to branch x on git.
@pushkarkathayat7893
@pushkarkathayat7893 Год назад
+1
@victoriousinsight
@victoriousinsight 10 месяцев назад
+1
@ishrathinaam6723
@ishrathinaam6723 10 месяцев назад
+1
@hanserlabber4164
@hanserlabber4164 10 месяцев назад
+1
@vali69
@vali69 4 месяца назад
Coolify?
@videoponder4673
@videoponder4673 10 месяцев назад
Thank you so so much for this video! This is the explanation of the missing link in the chain. As a self-educator I was desperately searching for exactly this.
@SonnySangha
@SonnySangha 10 месяцев назад
Im so glad it could help!
@LoadOfJak
@LoadOfJak 7 месяцев назад
Most of my short career has been spent working on PHP and WordPress projects so I’ve had a lot of experience setting up server environments for those, but it’s really great seeing how this process can work for a Next.js project, which is pretty much synonymous with Vercel. Good to see I’m not completely stuck on vercel just because I wanted to use next.js. Great and instructive video.
@gfb47
@gfb47 4 месяца назад
But what if we want to host both the next.js site and the php (mysql) site on the same server?
@semerset
@semerset 9 месяцев назад
This tutorial video is GOLD! Thanks a lot!
@webwisesagar
@webwisesagar 10 месяцев назад
Thanks Sunny ! The pdf you've given in the description really helps.
@SonnySangha
@SonnySangha 10 месяцев назад
Im glad it could help!
@Saad_sahib
@Saad_sahib Год назад
Sonny! You're raising the top level of education available to us Your videos are enlightening to us and providing new knowledge thanks bro🙂 my English is not Soo good but I hope you under stand
@maneshwam
@maneshwam Месяц назад
I just deployed my nextjs app in shared hosting. Just took 5 mins. App running smoothly.
@ewwitsantonio
@ewwitsantonio 6 месяцев назад
Excellent demonstration! This has cleared up so much for me. Thank!!
@hadi_2122
@hadi_2122 11 месяцев назад
Thank you so much. I was dealing with the issue of hosting my website on VPS. Now I can easily do that.
@DanielPenaloza-fj8yo
@DanielPenaloza-fj8yo Год назад
It would be awesome if you Sonny can make a small guide of managing Nodejs apps (like Nextjs) in a VPS (like hostinger's). Cause sometimes it's really hard to find some relevant information like yours, thanks a lot.
@sujjee
@sujjee Год назад
Hey man! I really enjoyed your videos. I'm currently looking into implementing multi-tenancy (wildcard subdomains). I've read the Vercel documentation and cloned Steves Tey's platform starter kit, but I'm still having trouble understanding the concepts. Would you be able to create a video on this topic that is more beginner-friendly? I'm particularly interested in learning how to use the new Next.js app route feature.
@lucaskrieck1877
@lucaskrieck1877 7 месяцев назад
Awesome video, specially the last part where you actually runs in localhost, this will make my work A LOT faster! Huge thanks
@christopheradolphe
@christopheradolphe 7 месяцев назад
Thank you for such great content. That's exactly the alternative I was looking for. Oh and by the way, totally unrelated... but that fade hair cut is sick!!
@murraywilliams-wd
@murraywilliams-wd 4 месяца назад
Thanks Sonny like everyone else I was able to follow your instructions and get my VPS setup so this has been a super helpful video. The issue is that in reality we would never follow this process of setting up a new NextJS app on our server, it's almost always going to be setup and built out locally and then when it's ready to be deployed we need to push it to a server. Pretty please can you explain how we would integrate our Github repo so that we can auto deploy to our hostinger VPS 🙏
@arthur6892
@arthur6892 9 месяцев назад
Wow. This video is sooo helpful. I covered all information i want to know. Thank you!
@biLLie_wiLLie
@biLLie_wiLLie Год назад
Thank you for this video! I would like you to explain more about deploy. This topic is quite tricky for a not backender. Perhaps making a clone of functionality of vercel (connecting git to server) on this channel can collect a million of likes
@krisztiankaposi8054
@krisztiankaposi8054 Год назад
Iv been waiting for this for sooo long
@jackfrosch
@jackfrosch Год назад
Fyi, NGINX is pronounced like "engine x".
@zyaaco9964
@zyaaco9964 10 месяцев назад
As a complete beginner to hosting, how safe is this? Like would I be able to create a nextjs app that i know is safe if i was to host it on vercel and be able to host it on a vps or do i need to take extra security measures? and is the process the same on other hosting websites that let you create a vps?
@sharurocky8379
@sharurocky8379 Год назад
Hi broo..Enjoyed and totally loved it❤ Please bring SSL certification video
@taiacolaitiniyara
@taiacolaitiniyara 9 месяцев назад
Thank you very much brother. This video really helped me alot.
@engageintellect
@engageintellect Год назад
Engine X*
@toadtws
@toadtws 9 месяцев назад
Not gonna lie, I LOLed.
@thomasawounfouet7395
@thomasawounfouet7395 5 месяцев назад
Thanks for the bonus with remote - ssh . It’s really awesome
@farshidk49
@farshidk49 11 месяцев назад
It was very helpful for me. Big Like!
@tair2347
@tair2347 6 месяцев назад
I don't write comments at videos at all, but this one is such a good video with grained explanation and showcase. Thank you very much!!! (And doc btw is very useful)
@SonnySangha
@SonnySangha 6 месяцев назад
Thank you so much!!!
@shamiul_islam
@shamiul_islam 11 месяцев назад
Thanks man! It was very helpful!
@jhmcodedev
@jhmcodedev Год назад
Thanks you Sonny ! Please make more videos like this ! How can i do if i want to publish more than one site using next ??
@tinotendajoe5852
@tinotendajoe5852 Год назад
Been waiting for these.. Had been deploying my apps to a vps but wanted someone to share latest standards on how to do it esp auto deploys with web hooks or something
@Sietches
@Sietches 11 месяцев назад
Very beginner friendly guide. Please do the SSL setup video!
@omarezeldin4620
@omarezeldin4620 Год назад
The Best #papareact 🔥🔥🔥
@bimaturity362
@bimaturity362 2 месяца назад
wow thumbs up for sure.. well deserved! (and subscribed!)
@kasmiraw
@kasmiraw Год назад
Hey Sonny, you are the one who taught me ReactJs, which opened up the path for my career and startup. Wish you all the best.
@ZadSoleimaninia
@ZadSoleimaninia 8 месяцев назад
Hey Sonny, thanks for the tutorial, very neat and easy to follow! Do you mind sharing what screen recorder software you use? Trying making a few videos for workplace and almost none of them work for me when I'm trying to embed my webcam inside the video in real-time! Thanks
@manuelb9122
@manuelb9122 10 месяцев назад
Thanks for this video. I want a video for ssl conf. Thanks in advance 🤜
@ehsanparastegari2003
@ehsanparastegari2003 Год назад
Amazing, Thank you
@inzendis
@inzendis Год назад
I have a question when I do VPS do I lose the functionality of features such as middleware and API routes? Its kinda of a dumb question seeing as you are using app router. Its just that I may need to do this exact thing to host a PWA Next.js 13 app that Im doing. Great video, you gave me a solution!
@gelarrahadianfajar799
@gelarrahadianfajar799 Месяц назад
it cold, thank you so much sonny, i have one question how if i want to deploy two project in one vps?
@Saldymedis
@Saldymedis 2 месяца назад
Thank you so much!
@enitan2002
@enitan2002 2 месяца назад
Thanks so much, this video taught me all I needed to know and got everything working on my side. But a quick question, how can you replicate this process for two or more apps that you want to be running on same VPS server. Also how does the server understands from the client's request which repository location that needs to be rendered
@harisahmad9323
@harisahmad9323 Год назад
As a Sr. frontend developer, I already have the above but still enjoyed watching on 2x speed 😅, also it will be great to make the ssh for it too
@Kawaiimusician
@Kawaiimusician 5 месяцев назад
Hi Sonny! I was wondering if you have any advice about setting up an SSL Certificate in a VPS environment?
@vinniv6806
@vinniv6806 8 месяцев назад
I hope you will create tutorial how to do the same with docker images and github repo
@Zakher
@Zakher 9 месяцев назад
Would love to see a self-hosted github runner + monorepo project
@bartmercier5436
@bartmercier5436 Год назад
Cool from an old grand daddy : i love your Channel.😊
@sahadpop4135
@sahadpop4135 7 месяцев назад
Need your guide on ssh for this one ❤
@protonys
@protonys 9 месяцев назад
Super content. Thanks !
@victorc.chikezie
@victorc.chikezie 11 месяцев назад
This is so beautiful. What if there is an error and I don't want users to see it yet until it's fixed, how do I do that since I'm working directly to the project folder from my remote vscode?
@babakmahmoodi8741
@babakmahmoodi8741 Год назад
Thanks a lot. Please teach us load balancing and ssl and dns
@braddockbrawler
@braddockbrawler 9 месяцев назад
Very useful. Subbed.
@hamzaakhun
@hamzaakhun 9 месяцев назад
This is awesome to deploy to custom server, lots of nextjs devs are searching for ... But a Major question here. Will app router middlewares and api route in nextjs work with this way????? Thanks
@skphotographyediting8983
@skphotographyediting8983 8 месяцев назад
Sunny it's showing an Error called /etc/nginx/sites-available/nextjs.conf : No such file or directory
@Finn51531
@Finn51531 11 месяцев назад
Very much appreciated.
@marvikfr
@marvikfr 9 месяцев назад
2 words => Merci Sonny ! 😎
@Onepiece_legends
@Onepiece_legends Год назад
❤ u got your self a new sub with a bench of likes , thank you bro
@martin_kuchar
@martin_kuchar Год назад
If I understand you right, you forwarded all requests for your web app to the node server, including requests for images, css etc.?
@andrew007s
@andrew007s 7 месяцев назад
Hello, my backend is PHP. Can I install PHP on Ngix? Can you make a video on how a Next.js app would work with PHP?
@tsykin
@tsykin 8 месяцев назад
Thank you so much for this guide, it was very helpful! Do you mind if I create my own guide on how to deploy Next.js app to Google Cloud VM on free tier using the knowledge that I got from this video? I think it will be beneficial for the dev community 🙂
@ekchills6948
@ekchills6948 3 месяца назад
this is God sent
@nathanielgonzalez9598
@nathanielgonzalez9598 7 месяцев назад
Great video, but I have a couple questions I'm hoping someone can help me out with. 1.) How do you deploy a Nextjs project that I've created that is on my desktop or on GitHub? Sonny only shows how to upload a newly created project. 2.) I followed Sonny's example and it worked perfectly. However, where is the project stored? I cannot find it using the CloudPanel GUI. It is not located under the "Sites" tab, so I'm not sure where I could go to access it. Thank you to anyone that is able to help me. I really appreciate it.
@369-davian
@369-davian 5 месяцев назад
GOOD JOB!
@knuseski
@knuseski 11 месяцев назад
Great tutorial, but I dont like remote coding.... You can work locally, commit and push changes on git, and then pull changes and rebuild the app
@ariyoujahan9662
@ariyoujahan9662 11 месяцев назад
Wow. Why does such an amazing video have just this many likes?
@SonnySangha
@SonnySangha 11 месяцев назад
We will grow don’t worry 🙏🏽 thank you so much for the support!!
@abhisheksrivastava1208
@abhisheksrivastava1208 Год назад
yes ! please add video on adding the ssl certificate too..
@codedusting
@codedusting 10 месяцев назад
Can we do it in simple website hosting plan?
@crescenttv5918
@crescenttv5918 2 месяца назад
is there any benefit of using vps over vercel?
@kakashizet7496
@kakashizet7496 9 месяцев назад
please make tutorial for deploy next js 13 with app router in cPanel.
@mahianahmed3178
@mahianahmed3178 9 месяцев назад
Any resources on maintaining serverless api inside VPS?
@chuchant7928
@chuchant7928 4 месяца назад
Is cloudpanel required? or just ubuntu OS is good enough to start with?
@tomasburian6550
@tomasburian6550 9 месяцев назад
This seems quite complicated, can't I just host the app on my own hosting where I put my regular web pages?
@programmersohel
@programmersohel 11 месяцев назад
Great! how can you use Deferent node version my various app?
@muhammadtahir-f6n
@muhammadtahir-f6n 10 месяцев назад
warp is not available for windows, please, recommend any other terminal for this setup
@gfb47
@gfb47 4 месяца назад
But what if we want to host both the next.js site and the php (mysql) site on the same server?
@JRichens
@JRichens Год назад
Sonny - Amazing... Just need SSL and how to forward my domain I purchased From GoDaddy to my IP address, or instructions where to do so! Thank you so much
@JRichens
@JRichens Год назад
Did this with Certbot and forwarded my domain with A method - sorted
@noobboiii007
@noobboiii007 27 дней назад
Can we deploy Strapi cms project in Hostinger VPS server??
@TusharRedlioDesigns
@TusharRedlioDesigns 4 месяца назад
How can i connect my custom domain to deployed next.js app to specific IPAddress ?
@chinmoykr
@chinmoykr 9 месяцев назад
Remove everything except “next” folder from node_module, to save storage
@aminataeidev
@aminataeidev 10 месяцев назад
thanks bro
@ONEOTPOfficial
@ONEOTPOfficial 6 месяцев назад
production build?
@tdombui
@tdombui 8 месяцев назад
The sharpest eye brows in software engineering
@SonnySangha
@SonnySangha 8 месяцев назад
Haha I love this!
@wazirshehryarali4375
@wazirshehryarali4375 3 месяца назад
Hey, Can you please tell me where can I store my env variables in this?
@israilgulzar7936
@israilgulzar7936 6 месяцев назад
supper cool about nginx because i have the same kvm2 and every thing same ... now just need to attach it with domain name and with subdomain tooo so plz create video for that ... or if u have already then drop link here plz
@xxapoloxx
@xxapoloxx 10 месяцев назад
It is stated that dev is not production ready
@milencja3094
@milencja3094 Месяц назад
wow! its tremendes and exellent job :) thanks a lot for this tutorial
@nicko9958
@nicko9958 4 месяца назад
15:21 I get an error when installing npm: "... have unmet dependencied:" ... "Unable to correct problems, you have held broken packages." Did I miss any step?
@muhammadtahir-f6n
@muhammadtahir-f6n 10 месяцев назад
Can I use putty on windows 10 to connect with server.
@SlaristaMardapani
@SlaristaMardapani 11 месяцев назад
Sir ck you create videk for use ssl on this video?
@rafaelldamaso
@rafaelldamaso 8 месяцев назад
works with cyberpanel?
@blahblahblah-u3m
@blahblahblah-u3m 11 месяцев назад
Please, what about it apache configuration.
@lp26197
@lp26197 Год назад
Hello my friend, I am following you and I want advice from you. I am a front-end developer and I use next js and I have worked on actual projects and I want to start in the back-end field. You advise me to start with C# or Javascript framework and work. I am very confused. Please help me. From your point of view, what is best?
@aymanechaaba
@aymanechaaba Год назад
Please, ur livestream setup 🙏
@googleusers
@googleusers Год назад
bro thanks you
@hacenhacen5814
@hacenhacen5814 7 месяцев назад
after deploying next.js e.commerce plateform in hostinger, does it have bills to pay like vercel, cause i've watched a lot of people complaining about the hight bills to pay in vercel and now i'm afraid that this happens too in hostinger, so can anyone lead me to what is the best buisness plan to choose and what are the do's and dont's that i must to have in mind ????
@ashleyrudland
@ashleyrudland 10 месяцев назад
Awesome, how do you do this but have it auto deploy from github? same setup, just auto deploy?
@SonnySangha
@SonnySangha 10 месяцев назад
In Vercel dashboard you can connect your GitHub in the integrations panel, once you do this pushing to master/main can trigger a deployment! Hope this helps!!
@ashleyrudland
@ashleyrudland 10 месяцев назад
@@SonnySangha I mean the VPS, not Vercel
@gaituyenquangtv
@gaituyenquangtv 3 месяца назад
Cảm ơn anh nhiều nha
@blahblahblah-u3m
@blahblahblah-u3m 11 месяцев назад
or can one create an nginx server for a subdomain because the entire vps is built on apache server
@beshoysoliman2331
@beshoysoliman2331 Год назад
can you deploy a nodejs server on it as well?
@tauqeerhusain7521
@tauqeerhusain7521 Год назад
Big love sony sir ❤❤
Далее
deploy next js on iis web server
17:20
Просмотров 41 тыс.
POLI и Маша - Сигма бой
00:20
Просмотров 286 тыс.
The BEST way to host Next.js websites
17:37
Просмотров 48 тыс.
How to write a Solana program in Assembly
31:08
Host your own Vercel
57:58
Просмотров 7 тыс.