I have created a shopify app with node template. It is working on my localhost but backend is not working on AWS server.
Steps: I created frontend build using npm run build. It created dist folder in frontend. Then I uploaded dist folder content in server html folder and updated urls in Shopify app. The Frontend worked, but the backend APIs are not working.
Issue:- On server, shopify login is not working as it creates localhost url on npm run dev and web folder is not working directly as well if I run npm run serve. So I am unable to find a way to make the node backend work on AWS ec2 server.
node version: 18
CLI version: 3.50
