question

Canop23-6642 avatar image
0 Votes"
Canop23-6642 asked Grmacjon-MSFT answered

Using Static web app with App and API in different repos

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-webapps-developmentazure-webapps-apis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KalyanChanumolu-MSFT avatar image
0 Votes"
KalyanChanumolu-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT answered

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,


-Grace


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.