Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api_location: "" - does not deploy static web app with an unlinked backend #125300

Open
eas-jens opened this issue Dec 20, 2024 · 1 comment
Open

Comments

@eas-jens
Copy link

eas-jens commented Dec 20, 2024

I have deployed several static web apps with linked backends and I always have an issue unlinking the managed functions so that I can link an azure function backend instead. I have followed the steps listed here.

https://learn.microsoft.com/en-us/azure/static-web-apps/functions-bring-your-own

Below is an example configuration that does not seem to unlink the backend.

  - name: Deploy static web app
    id: builddeploy
    uses: Azure/static-web-apps-deploy@v1
    with:
      azure_static_web_apps_api_token: ${{ env.AZURE_STATIC_WEB_APPS_API_TOKEN }} # secret containing api token for app
      repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
      action: "upload"
      skip_app_build: true
      skip_api_build: true
      ###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
      app_location:  ${{ env.APP_LOCATION }}
      api_location: ""
      output_location: ${{ env.APP_ARTIFACT_LOCATION }}
      production_branch: "main"
      ###### End of Repository/Build Configurations ######

If I deploy over and over again, occasionally it will work but the majority of the time it does not. If you have any ideas on why this might be happening I would greatly appreciate it.

@PesalaPavan
Copy link
Contributor

@eas-jens
Thanks for your feedback! We will investigate and update as appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants