After uploading my Angular app on Godaddy Host in the public_html directory, I also included the Express.js API in the public_html/web-api folder. When it comes to running node on the host using SSH, everything seems to work fine as indicated by the console log showing the initialization of the database here. However, when trying to access the API through requests, it appears that Angular does not redirect properly and there is no output in the SSH console. What could be missing from my environment settings and proxy configuration for production? Locally, I never encountered such issues before. Do I need to specify the port or the folder where my API resides?
//environment.prod
export const environment = {
production: true,
apiUrl: ['https://web.com'],
};
{
"/api/*": {
"target": "https://web.com/web-api",
"secure": false,
"logLevel": "debug",
"changeOrigin": true
}
}
Files on the host: public_html
directory: web-api
Any assistance provided would be greatly appreciated!!!