Unable to deploy NodeJS TS using Github but working with Vercel CLI

when i m using Vercel CLI command from project it is working fine but when i m pushing to Github and Deploying it then getting 404

File Structure:
– Root Dir
– dist/index.js
after deployment i m using node dist/index.js comamnd to start

Node JS Version 20 with TS Express

Hi, and welcome @tpbadgujar!

Could you try changing the src under builds to: dist/index.js? I wonder if it’s just because of the path that is the issue.

I have Deployed with github but, when i m going to the URL then it is showing raw code for index.js

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.