Using Static web app with App and API in different repos

Canop23 1 Reputation point

hi guys,

I got on github one specific repo for APP and another repo for API.
Since with static web app creator its only possible to connect to a specific org / repository, how could I do ? obviously need to merge the 2 repos (like creating a subfolder "api" and copy the root structure of API repo in this subfolder)

or create 2 different static web apps, one for API repo and another for APP repo (but in this case I loose all the interest of static web app....)

or any other trick ?

Please advise, thanks !

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,349 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. KalyanChanumolu-MSFT 8,316 Reputation points

    Is your question related to combining them onto another repo or deploying them to Azure?
    You can use our newest offering Azure Static Web App to host your web app and use an App service for the API.

    You also have the choice of hosting a static website on Azure Storage

    Let us know if you have further questions

    If an Answer is helpful, please “Accept Answer” or Up-Vote for the same which might be beneficial to other community members reading this thread.

    0 comments No comments

  2. Grmacjon-MSFT 17,366 Reputation points

    Hi @Canop23-6642

    Along with what Kalyan suggested. You can add serverless APIs to Azure Static Web Apps via integration with Azure Functions. This documentation demonstrates how to add and deploy an API to an Azure Static Web Apps site.

    Hope that helps,


    0 comments No comments