How to Deploy Next js App on Cpanel | Learn how to host Next js App on Namecheap Hosting Server

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Step - 1
    Create a Next js App
    Step - 2
    NPM install & NPM run dev
    to sure website work properly
    Step - 3
    Create a file server.js app root folder
    &
    package.json file scripts area edit
    "start": "NODE_ENV=production node server.js",
    Step - 4
    NPM build for uploaded in server
    Step - 5
    zip all the file except node_module
    &
    unnecessary file
    Step - 6
    Login Cpanel
    create a folder in File manager
    then upload zip file in here
    last configure Cpanel Node Js

Комментарии • 47

  • @gededestrawan9997
    @gededestrawan9997 5 месяцев назад +10

    you must change ur title yt with next js page not app, this tutorial is showing about how to deploy next js page router not app. ty

    • @fadhil4008
      @fadhil4008 День назад +1

      I mean, app router is a different topic. You can still call this NextJs Application despite using next page router lol

  • @Bobobek
    @Bobobek 6 дней назад

    What about NUXT project, does this work the same or?

  • @tiagomendes5646
    @tiagomendes5646 4 месяца назад +1

    why do you need to create a custom server? couldnt you just use next start?

  • @ameysawant4076
    @ameysawant4076 2 месяца назад +1

    hello sir i have upload next js app in plesk after followed all step when i hit on
    url it showing me coming soon...

  • @ABCABC-k1b
    @ABCABC-k1b Месяц назад

    503
    Service Unavailable
    The server is temporarily busy, try again later!
    it show this msg in page

  • @Yousafzai112
    @Yousafzai112 4 месяца назад +1

    When i typ Node the aptions for the Node js setup not showing. Is there any issue in my Cpanel? if yes please guide me how will i slove the issue?

    • @amandaheater3517
      @amandaheater3517 27 дней назад

      I hope its not late but some cPanels from other hosting companies do not buy Node.js licenses. So like yours chances are that they do not have a node.js license

  • @alfiandm5782
    @alfiandm5782 8 месяцев назад +1

    i take so long for npm run dev in cpannel what is the problem ? it says Can't acquire lock for app: %(app)s

    • @monjuaflame8329
      @monjuaflame8329  8 месяцев назад

      Try it again.
      When run npm if it write folder path it must work.

  • @guideguts
    @guideguts Месяц назад

    is it just me or run npm install takes forever

  • @LudoKingChallenge
    @LudoKingChallenge 9 месяцев назад +1

    It's not working for me. Could you please help me.

  • @sufiirumi
    @sufiirumi 8 месяцев назад +1

    Is it possible to make SSR in cpanel? You need a VPS server for this, right?

  • @tranphuongnen8089
    @tranphuongnen8089 16 дней назад

    how do you connect database on cpanel

  • @office394
    @office394 4 месяца назад

    sir can u dot his same with hostinger panel??? plzz sir make video i am waiting for that. plzz upload today sir

  • @iqnexplorers
    @iqnexplorers 7 месяцев назад +1

    Does it run on NEXT version 14?

  • @mykus1000
    @mykus1000 7 месяцев назад +1

    can i deplay with prisma , app router and serveur compenent in cpanel

    • @monjuaflame8329
      @monjuaflame8329  7 месяцев назад

      yes

    • @ms-arif
      @ms-arif 7 месяцев назад

      Dynamic routing won’t' work in cpanel

  • @AbdelkaderSoudani
    @AbdelkaderSoudani 6 месяцев назад

    is that on Namecheap shared hosting? it only renders static sites right or does it run SSR also?

    • @chuksjoe007
      @chuksjoe007 6 месяцев назад +1

      With the way he deployed it, it will run as a Server Side Rendered application.

    • @AbdelkaderSoudani
      @AbdelkaderSoudani 5 месяцев назад

      @@chuksjoe007 thank you, he's using page router though, not app router

  • @unlimitedmemes-fu4pr
    @unlimitedmemes-fu4pr 7 месяцев назад +1

    please help me bro im getting 503 error

    • @monjuaflame8329
      @monjuaflame8329  7 месяцев назад

      Please first check in locally if everything ok then follow it

  • @Antonio-nn2kq
    @Antonio-nn2kq 7 месяцев назад

    How do I run Prisma with nextjs in cpanel? I set the environment variable, but it doesn't recognize it.

    • @monjuaflame8329
      @monjuaflame8329  7 месяцев назад

      No problem. Here node module render your hole application

    • @Antonio-nn2kq
      @Antonio-nn2kq 7 месяцев назад

      @@monjuaflame8329 Even though it doesn't run, it doesn't recognize the environment variable. I had to subscribe to a VPS and host the files on the .env file. On a common hosting with cpanel it doesn't work to configure the environment variable.

  • @seospecialistakm3028
    @seospecialistakm3028 9 месяцев назад +1

    daynamic possible? example /blog/1

  • @RanjithR-p2r
    @RanjithR-p2r 5 месяцев назад +1

    i am getting 503 error anyone help me

    • @monjuaflame8329
      @monjuaflame8329  5 месяцев назад

      Please try again.

    • @RanjithR-p2r
      @RanjithR-p2r 5 месяцев назад

      @@monjuaflame8329 Thank you so much for your reply but its not working i did as you please help me

  • @kacperkepinski4990
    @kacperkepinski4990 8 месяцев назад

    missin steps

  • @vernevens1598
    @vernevens1598 6 месяцев назад

    WTF did you even do?

  • @kacperkepinski4990
    @kacperkepinski4990 8 месяцев назад

    unclear as hell

  • @faridanjali8160
    @faridanjali8160 7 месяцев назад

    Why i always get 503

    • @DrMoCode
      @DrMoCode 7 месяцев назад

      Same. I always get Error 503. Server Unavailable

    • @RanjithR-p2r
      @RanjithR-p2r 5 месяцев назад

      you find the solution for this i am also getting 503 error, Please help me

    • @RanjithR-p2r
      @RanjithR-p2r 5 месяцев назад

      @@DrMoCode you find the solution for this i am also getting 503 error please help me

    • @DrMoCode
      @DrMoCode 5 месяцев назад

      @@RanjithR-p2r I did
      My own case was version incompatibility
      The highest node version on the cPanel I was using was way lower than the node version nextjs was built on.

  • @soumyaranjan6941
    @soumyaranjan6941 4 месяца назад

    Hi Sir ,
    Need a help from you regrading deployment of nextjs in a shared server in cpanel ,
    As currently stuck by an issue when trying to run npm start
    This is issue i am getting, please help me out
    node:internal/deps/undici/undici:9235
    return await WebAssembly.instantiate(mod, {
    ^
    RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance
    at lazyllhttp (node:internal/deps/undici/undici:9235:32)
    Node.js v19.9.0

    • @monjuaflame8329
      @monjuaflame8329  4 месяца назад

      Please try again by following step.

    • @JumaInTech
      @JumaInTech 2 месяца назад

      how did you resolve this, I am experiencing the same issue today. I have also written to my hosting provider