thanks, if my application is using prisma and conencting to mysql (localhost) if i create db in cpanel and set values in .env, will it work ?? and connect to mysql in server?? right?
@@manishbhusal-fq2vv make your build locally, and as a last step after running project unzip the .next folder in cpanel project directory. If solution works make sure to press subscrb channel
is there a way to do it with out folder? because for my project .next folder is quite large , also i tried doing it with out folder but its causing problems in routing
@@jonreylumayag9856 when it occurred? Are you following the process in tutorial properly. Because it is works same as for both app router or page router
brother, i am working on app router and using middleware.js file for authentication. but, the middleware not working on the shared host. can you help me on this?
try to make middleware.js file in the project root folder instead of pages directory. If you are using src/app then move this in src folder instead of src/app. Hope this helps.
@@code_lab_9994 i am using app router and the middleware.js file is already in the src folder. but it's not working. basically, i get not-found page for the routes which are mentioned in the matcher isndie the middleware.js file.
@@code_lab_9994 i am working on the app router and the middleware file is already on the src folder. but not working as expected. basically, i am getting not found page for all the routes which are mentioned in the matcher inside the middleware.
@@code_lab_9994I am unable to deploy view .next folder on my cpanel .. While I try to redeploy .next folder,it says the folder already exists, but it is not showing in cpanel
Apparently I am getting error while running JS script build which says 'out of memory error may be caused by hitting LVE limits or "Max data size","Max address space" or "Max resident set" process limits.Please check LVE limits and process limits.' How to deal with this error? Any idea?
@@maneeshsingh3038 you should not run JS script there instead you should create build locally and paste .next folder at last step and restart app as i did in video
Thank you so much. I found solution how to deploy and it fix my error during deploy on cpanel😊
Thanks for watching
Hermano!, muchas gracias, tenía un problema con los "import from", muchas gracias!
@@samuelnarciso9110 can you write in English
Keep up the good good work, Thank you
@@blogvlogadvertising4976 Thanks so much for watching 👍
😍Thanks its working for the nextjs app router 😍
Thank you for watching.
hellow
i have a problem please help me in deploying next js app router in cpanel with middleware and dynamic routing am stack all over the week
@@thomasiboniventure8969 which type of issue you face?
@@thomasiboniventure8969 which type of issues you face?
Thank you for this tutorial, it's very straightforward 👍
@@olujobifolaranmi2133 Thanks so much for watching and for your kind words! Glad you found the tutorial helpful. 😊
i am having an issue using a shared server but my dynamic routing is not working giving me internal error 500
This is good, thanks for sharing
@@Samlama8848 Thanks for watching 👍
Thank you but in my case the .next folder isn't showing after upload
@@gabrielobafisile2299 click on setting icon in project folder in cpanel and click on "show hidden files". Make sure to subscribe my chnnel
thanks, if my application is using prisma and conencting to mysql (localhost) if i create db in cpanel and set values in .env, will it work ?? and connect to mysql in server?? right?
@@lalamax3d yes it will work. On cpanel already mysql database runs on localhost.
Did you deploy your bro? I have same configuration but I am having problem deploying to cpanel
@@lemongautam6171 I bought shared cpanel host on NC, going to try in coming week
@@lemongautam6171 hello
grate video can u show us how to connect to pgsql database as well
Thanks for watching. I will make tutorial on that soon.
my project in next js TS tailwinds, I do same steps but show 503 error.
@@manishbhusal-fq2vv make your build locally, and as a last step after running project unzip the .next folder in cpanel project directory. If solution works make sure to press subscrb channel
is there a way to do it with out folder? because for my project .next folder is quite large , also i tried doing it with out folder but its causing problems in routing
@@manishgupta7181 I also have tutorial on that goto my channel and you will find deploy static html export on cpanel
i have a problem please help me in deploying next js app router in cpanel with middleware and dynamic routing am stack all over the week
Does it work in TypeScript?
Yes it works.
@@code_lab_9994 Im using App Router. Should i move the server.js inside the src/app?
Having problems with app router in next. Some files are not found.
@@jonreylumayag9856 when it occurred? Are you following the process in tutorial properly. Because it is works same as for both app router or page router
@@code_lab_9994 This is one of the errors. "webpack-10c40cd540426986.js Not found"
brother, i am working on app router and using middleware.js file for authentication. but, the middleware not working on the shared host. can you help me on this?
try to make middleware.js file in the project root folder instead of pages directory. If you are using src/app then move this in src folder instead of src/app. Hope this helps.
@@code_lab_9994 i am using app router and the middleware.js file is already in the src folder. but it's not working. basically, i get not-found page for the routes which are mentioned in the matcher isndie the middleware.js file.
@@code_lab_9994 i am working on the app router and the middleware file is already on the src folder. but not working as expected. basically, i am getting not found page for all the routes which are mentioned in the matcher inside the middleware.
Does this work on app router as well?
I am getting error as i am using app router
Deployment is same for both.
@@code_lab_9994I am unable to deploy view .next folder on my cpanel .. While I try to redeploy .next folder,it says the folder already exists, but it is not showing in cpanel
Apparently I am getting error while running JS script build which says
'out of memory error may be caused by hitting LVE limits or "Max data size","Max address space" or "Max resident set" process limits.Please check LVE limits and process limits.'
How to deal with this error?
Any idea?
@@maneeshsingh3038 you should not run JS script there instead you should create build locally and paste .next folder at last step and restart app as i did in video
Is it the same using app router ?
@@abdullahzafar4401 yes it will also work. If you face any issue tell me in comment.
@@code_lab_9994
what's your package json
Your script part must contian this in package.json
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
can you upload you github?
In video description i have written the package.json scripts part that you needed. I will also put github link later.