@Satoshi Thank you for reaching out to Microsoft Q&A. Apologizes for the delay and inconvenience caused any on this.
To reproduce this behavior, I have created a static web app and added an
HTTP function by following this documentation steps add-api. We are able to build, run and test the app with locally and from the portal successfully without any issues.
- While deploying the static webapp to azure then you need to update the
apithen only the backend managed api function will get deployed and all the incoming requests to SWA will be routed to
/api/messageand the content in the index.js under the api folder will be served in the browser. Since you are missing to add
apiwhile deploying to azure using github action that is the reason you were landed with blank page. Refer to this documentation for more information about the api_location and api support in static webapps.
- The Build and Deploy Job task is successful, but in the Store Reports part described in playwright-onDemand.yml , the message Action failed with not found deploy key or tokens occurs. --> I have checked with internal team they confirmed that we can ignore the error with running the playwright yamls.
Feel free to reach back to me if you have any further questions on this.