I have react+next and node js project and I want to deploy that project at heroku. That is the structure of my project:-
and my package.json file is if I add "Start": "next start" only the frontend works and if I changed it "Start": "tsc -p server/tsconfig.json -watch && node server.js" it's gave me the error.