Internal API issue on deployment while working code on localhost

Dr. Narend 1 Reputation point
2022-11-25T19:14:31.773+00:00

Api endpoints can't work correctly, only just initial endpoint is working.

NodeJS code is working locally but not working in the azure app service
I am trying to create an app service in Azure with an API web app that works fine locally.

Here package.json :

{
"name": "express-backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"engines": {
"node": "16.x"
},
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"mongoose": "^6.7.2",
"multer": "^1.4.5-lts.1",
"nodemailer": "^6.8.0",
"nodemon": "^2.0.20"
}
}

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,698 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,692 questions
{count} votes