How to run Next Js application build (out) directory in local? #16439
-
I have done development of Next Js application and as of now I have done auto deployment using https://vercel.com/ Things are fine as of now.. But here came the requirement that I need to build the Next Js application and share the build folder with the team for deployment in server. The commands I have followed,
And the above one creates the Folder structure of
So anyone could kindly please help me how can I run this generated build folder (out) to check whether the developed Next Js application works fine in my local machine after which I can share the same built folder to the team? While using vercel things happen automatically whenever we push the code, it deploy automatically, but I am not sure how actually deployment happen there.. In other frameworks we used to get the dist folder with index.html which makes easy to understand for deployment. I am in the need to confirm that build folder works fine in my local before sharing it with team for deployment. So for that I need to build and run the Next Js app in my local.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
You could use serve out |
Beta Was this translation helpful? Give feedback.
You could use
serve
locally to test it out.