Questions tagged [azure-static-web-app]

340 questions
3
votes
2 answers

Azure Static Web App: transform Blazor webassembly appsettings.json in Azure DevOps

I have a static blazor web app that has the following structure: and the following setting in appsettings.json: { "ApiUrl": "http://localhost:7071/api/" } I also have a Azure DevOps pipeline with the following yaml: trigger: - main pool: …
3
votes
2 answers

Azure static app with REST API hosted on Azure App Service

I am looking to leverage Azure Static app to host a angular based SPA application and for this application I have an REST API which is hosted on Azure App Service. Based on my analysis all the examples including Microsoft documentation, I see that…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
3
votes
2 answers

Task AzureStaticWebApp@0 'could not detect this directory' but its presented

I am working on building a pipeline using AzureDevOps, and I face a strange problem. This is my pipeline: - stage: 'Test' displayName: 'Deploy to the test environment' dependsOn: Build jobs: - job: 'Deploy' steps: - download:…
3
votes
0 answers

Azure Devops Release Pipeline's Azure Static Web App (SWA) step with dotnet api

As much as I can, I'm following the fundamental principles of Continuous Delivery: "Build Once, Deploy Anywhere." TL;DR: In Azure Devops Release Pipeline's SWA step: is there a way to have Oryx either not build the api or recognize that it is a…
3
votes
1 answer

How to delete an item in a CosmosDB from an Azure HTTP Trigger function in C#

I have a Blazor, Azure Stacic Web App that is using Azure HTTP Trigger Functions to perform CRUD operations on an Azure CosmosDB. I am unsure how to remove a single item from the database? GET and POST actions seem to be well documented for HTTP…
3
votes
3 answers

How to use Azure DevOps Git Repository with Azure Static Web App?

Azure have a new(ish) static hosting product which would be very useful. The idea is you can check your static site code into Git, and have it deploy to your site. You can even view branches as a sort of preview workflow. The problem is Azure…
John Little
  • 10,707
  • 19
  • 86
  • 158
3
votes
2 answers

Calling an Azure AD secured Azure Function from React SPA/Azure Static Web App

I'm developing an SPA with React that is hosted as an Azure Static Web App. The App is secured with Azure AD Authentication which works great, I already built a Login that works fine and I can call Azure (Graph) APIs with the token I got and…
2
votes
1 answer

How to deploy my vitepress to azure static web app with base url?

Now I can deploy the website to http:xxxxxx/index.html, but what I want to do now is to deploy it to http:xxxxx/web/myapp/index.html, so I set the base options in the Vitepress to make it serve at /web/myapp, it works in my local environment ( npm…
2
votes
0 answers

React app hosted as Static WebApp on Azure doesn't detect env vars

I have a YAML task for deploying a static web app: - task: AzureStaticWebApp@0 name: DeployStaticWebApp displayName: Deploy Static Web App inputs: app_location: 'web-app' app_build_command: 'npm ci && npm run build:int' …
2
votes
1 answer

Random URL on deploying azure static web app

I have a deployed a static web application using a YAML task: - task: AzureStaticWebApp@0 name: DeployStaticWebApp displayName: Deploy Static Web App inputs: app_location: 'web-app' cwd: 'package' …
user989988
  • 3,006
  • 7
  • 44
  • 91
2
votes
1 answer

react-router-dom (v6) Routing not working in production while working in development

I have defined all my routes in App.js file, given below {user && } />} } /> } /> …
2
votes
0 answers

Deploying Next.Js App to Azure Results in BadRequest Reason: The size of the function content was too large

I have a next.js app that I am trying to deploy to Azure using GitHub Actions. - But the deployment failes with the following error. The content server has rejected the request with: BadRequest Reason: The size of the function content was too…
2
votes
1 answer

Cannot deploy my React app in Azure Static Web Apps. Github actions throws this logs:

Everything is running ok until this happen: npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort,…
rdrx
  • 21
  • 4
2
votes
1 answer

Can I specify callback URL on built-in OIDC Authentication call from Blazor static web app WASM?

I call "/.auth/login/google" (or other providers) from my Blazor static web app. Once the user consents, control is routed back to the index page. Is there a way to specify that I'd like a different return page, e.g. via something like…
2
votes
1 answer

Azure Static web app - Custom Identity Auth with Azure AD

I am new to the Azure Static app and struggling to make Azure AD SSO work with Azure AD app registration. I went through the questions already available on stack overflow but the responses miss the routing config in staticwebapp.config.json file and…
1 2
3
22 23