@SHASWATA DAS , Firstly, apologies for the delayed response.
Based on my understanding of your issue description - Just to highlight, On Azure App Service it uses a file called web.config
for IIS-based applications or the startup command
for Linux-based applications to understand how to start your app. It looks for the server.js
file if that's specified in your configuration as the entry point for your Node.js application
Regarding the error message you're receiving when trying to register a user, it suggests that the route for registration might not be correctly set up in your Azure environment, or the server is not properly configured to handle the request. This could be due to a variety of reasons, such as missing environment variables, incorrect file paths, or other configuration issues.
To check the logs on your Azure App Service, you may use Azure's App Service Diagnostic Logs to capture and analyze the activity of your application through logging : Access log files
Review Enable and review logs to fetch more details about the error.
Additionally, you can use Azure Monitor Logs and Log Analytics to query and analyze logs for more insights.
on App Service Windows - If you deploy your files by using Git, or by using ZIP deployment with build automation enabled, the deployment engine generates a web.config in the web root of your app (%HOME%\site\wwwroot
) automatically if one of the following conditions is true:
- Your project root has a package.json that defines a
start
script that contains the path of a JavaScript file. - Your project root has either a server.js or an app.js.
The generated web.config is tailored to the detected start script. For other deployment methods, add this web.config manually. Make sure the file is formatted properly.