I decided to add ssr capability with nextjs to the project that started with asp.net core react template in visual studio. Before adding nextjs when I clicked on the run project button in visual studio both api server and cra server would've started without any problems...but after adding next to my project it gives me a server error.
I fixed that by running npm run dev or npm start in vs code to start nextjs server alongside visual studio.
And now that I want to publish my project in visual studio there is no clientApp or any other react related folder in my published folder ( and of course it gives internal server error when uploaded to server and looks like it doesn't even build my nextjs app )
How can I publish my nextjs app based on visual studio asp.net core react template?