Summarizing the issue and solution, to benefit the community.
Scenario: I have a static web application built with a React frontend and TypeScript functions. Deployment is handled via GitHub Actions using the Azure/static-web-apps-deploy@v1
action. Previously, the deployment process was functioning correctly, deploying both the frontend and the API functions to Azure.
Issue: After successfully deploying my static web application via GitHub Actions to Azure, the API functions are no longer visible or accessible. Despite the GitHub Action indicating successful deployment and no apparent errors during the deployment process, attempts to access any API endpoints result in a 404 error.
Local testing using the SWA CLI confirms that the application should include 8 API functions, but these do not appear in the deployed Azure environment.
Posting the solution shared by Joe Washek
Solution:
Moved all the npm dev dependencies to regular dependencies, and the functions show up now.
> please click Accept Answer - it will benefit the community/users to find the answer quickly.