Dynamic pages issue on server pages
I just joined an org which uses ftp, cpanel, for the server and normally they create out folder and put it on the server but due to server side dynamic pages not being supported we are unable to host it as it's throwing error. we installed node to solve this but it still doesn't work. What should be the way to go about this?
3 Replies
Hey Iket, I'd love to help you troubleshoot this. Just need a bit more info to understand what's going on
1. What kind of hosting plan is the organization using? (Shared, vps, or dedicated server)
2. Have you checked whether the hosting provider officially supports nodejs?
3. Are you running the nodejs app manually or do you expect it to start automatically?
4. Where exactly did you place the javascript files on the server?
Let me know what you find and we'll figure it out together xD
Hi, thanks for the fast reply first of all. Really appreciate it. I am new in the company and my team lead doesn't have any idea about this too. The company had been working on html, js, php this whole while so infra is mostly regulated with that in mind. I am going to have a talk with the it guy to understand what is our current situation.
Meanwhile i have been researching on this and my problem is basically this to make it even more clear than it already is.
https://github.com/vercel/next.js/discussions/64660
GitHub
App Router with
output: export
does not support useParams()
on ...NoteJump to the latest answer from the Next.js team: #64660 (comment) Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Ope...
Maybe also bring up docker in the conversation too. If you manage to set it up on the server, you'll pretty much be able to run anything there, including a next app. See https://nextjs.org/docs/pages/building-your-application/deploying#docker-image (i suggest reading through the whole page if you got time)
Building Your Application: Deploying | Next.js
Learn how to deploy your Next.js app to production, either managed or self-hosted.