Questions tagged [azure-static-web-app]
The azure-static-web-app tag has no usage guidance.
344
questions
0
votes
0
answers
20
views
Send web form responses via email in Azure Static Website
I'm trying to put together a static website in python in Azure.
I've put a form into it, but I'm thinking that it may be the trigger to go to a web app rather than static site for sending responses in ...
0
votes
1
answer
40
views
Need to link "Bring your own function" to static web app but can't get it to happen
I have a serverless Azure Function api in JS that I want to link to my static web app. When I try this in the portal I select the subscription > function app > click link. But nothing happens. ...
0
votes
1
answer
39
views
Why is Azure static web app going over size limit
In my Azure static web app (which has an Azure function folder), I keep trying to build and deploy but it is hitting a size limit for the Standard plan, which allows a max app size of 500mb. I am not ...
0
votes
1
answer
24
views
gitlab pipeline to azure static web app doesn't seem to work
I'm trying to take a very vanilla create-react app and deploy it to Azure static web apps via a Gitlab pipeline.
I've create the .yml file like so
stages:
- build
- deploy
variables:
API_TOKEN:...
1
vote
0
answers
79
views
How to properly deploy an Angular i18n app on Azure Static Web Application?
I have things mostly working, but this staticwebapp.config.json is causing me more trouble than a typical nginx or apache configuration.
This is an Angular 15 Application with i18n configured.
My ...
0
votes
1
answer
60
views
Rewriting to my index.html not working with the local IIS
I have installed on my local machine (with the IP address 192.168.0.19) the IIS. I setup the site binding on IIS to HTTPS port 443
My configuration web.config file located in C:\inetpub\wwwroot\...
0
votes
0
answers
23
views
SVG Images not loading in Azure static web app
We have a Blazor WASM application and is hosted in Azure static web app.
The svg images are not loading and we get 404 error.
Do we need to add any entries in staticwebapp.config.json to make this ...
0
votes
1
answer
61
views
Images in one of the folders not loading in Azure static web app
We have a Blazor WASM application which is hosted in azure static web app.
We have images in 2 folders
/images
/data_images
The images from the /images folder is loading in the web app, but the ...
0
votes
1
answer
73
views
Azure Static Web App - React - Vite - CORS
I have deployed a React SPA Static Web App. I'm using Vite, and in my vite.config I have set up a proxy that works during development.
import { defineConfig } from 'vite';
import react from '@vitejs/...
-1
votes
1
answer
54
views
I was not able to deploy react native web app to Azure Static Web App via bitbucket
Here is my pipelines bitbucket-pipelines.yml
image: atlassian/default-image:latest
options:
docker: true
size: 2x
pipelines:
branches:
dev:
- step:
name: Deploy to test
...
0
votes
1
answer
77
views
SWA cli emulator crashes when enabling SSL with NextJS dev server
I try to run NextJS development server with SWA emulator. After enabling SSL, emulator crashes after first request. If I do static export of the NextJS site and use that folder with emulator, ...
0
votes
1
answer
53
views
Error Running Azure Static Web App with NPM Workspaces Enabled
I have a basic Next.js app in a monorepo project using NPM workspaces (repo). The app can be deployed via GitHub actions without error to an Azure Static Web App, but I get a 502 error when accessing ...
0
votes
1
answer
170
views
Azure static webapps not able to deploy - Failed to remove 'http.https://github.com/.extraheader' from the git config
I've tried to put my github repo for a react website onto the azure static web apps - but I keep getting an error trying to deploy it.
"Build and Deploy Job Failed to remove 'http.https://github....
0
votes
1
answer
20
views
Azure SWA Function response is incorrect when Azure Table storage called
I have an api in an Azure SWA which needs to retrieve data from Azure Table Storage.
I am running local development using VSCode on an M1 MAC w/ the Function and SWA extensions, a dev-container, with ...
0
votes
1
answer
47
views
Azure SWA Development - Accessing Storage during local development
I'm developing an SWA app and would like for an API in my app to access Azure Storage.
Ultimately, I'd prefer to use a Managed Entity for this.
I am using AD authentication, but when developing ...
0
votes
1
answer
45
views
Azure Static App Vs Azure Web App (Python)
I've got a Python project I've been working on that builds a static HTML page.
I'd like to be able to run the Python script that does some stuff then starts a Web page with a search box kind of like ...
5
votes
0
answers
255
views
Deploying a Turborepo Next.js App to Azure Static Web App
I'm attempting to deploy a Next.js site in a Turborepo monorepo to an Azure Static Web App using GitHub actions and a custom build step. The Next.js site is configured to use a standalone output, but ...
0
votes
1
answer
113
views
Schedule Nuxt Static Site Generation and deploy on Azure
I'm using Nuxt3 to host my site.
I want it to have a serverless architecture, that a schedule build for the static site generation, and deploy it on Azure Static Webapps/ Azure Storage.
In short, I'm ...
0
votes
1
answer
68
views
Getting a "proper" and "permanent" URL for an app hosted in Azure Static Web App
I am developing an Azure-based app:
Frontend is Angular v16, hosted in an Azure Static Web Site (on Linux)
Backend is an ASP.NET Core 7 Web API (hosted in an Azure Windows App Service)
Database is ...
1
vote
0
answers
44
views
Rapid7 scan has detected issue on static web app deployed on azure and created using ReactJs [closed]
Microsoft FrontPage Extensions installed and enabled can have their permissions misconfigured.
All issues has been given urls like below -
htttps://baseURLOfStaticApp/_vti_txt/,
htttps://...
0
votes
0
answers
104
views
Is next/image caching supported on Azure Static Web App?
I am using next/image to show images on Next JS web app using <Image> tag and everything is working normally: the image is scaled to the proper size, in the proper optimized format (AVIF/WebP), ...
0
votes
3
answers
135
views
How to deploy node application to Azure staticweb app
We have created AZURE Static WebApp and Private endpoint in Azure cloud and the Static webapp fqdn is mapped to the privateendpoint ip by creating the DNS record in Private DNS zone.
Now the nslookup ...
1
vote
1
answer
136
views
App Service equivalent of a Static Web App
Is there an out of the box way to create a static web site as an Azure App Service WebApp instead of as an Azure Static WebApp.
I know I can create an ASP Core web app and just ignore the Razor pages, ...
0
votes
1
answer
71
views
staticwebapp.config.json not redirecting on Azure static website
I'm trying to get sub urls working on a SPA located on an azure static website
I have placed a staticwebapp.config.json in my root for the app, it can be viewed here: https://www.fplgameweek.com/...
0
votes
1
answer
204
views
Azure static web app: staticwebapp.config.json not found using Github actions
Adding a staticwebapp.config.json always results in not found error of the config file.
I added a staticwebapp.config.json into the assets folder of my angular project, but the build alsways failes ...
0
votes
1
answer
59
views
azure static web app + github = cant merge any PR, get "deployment_token was not provided", but does deploy when doing a normal commit to main
we have a pure html/js static web app, and when we commit to main, it "builds" it by deploying the html/js as they are to the static web app, and all is good.
we can happily commit to main, ...
0
votes
1
answer
56
views
Custom role for static web app with ADB2C + python api not running
I am attempting to manage custom user roles for a Static Web App programatically via a built-in function for OpenId Connect to Azure ADB2C. It's got a built-in python serverless API. Here is my ...
0
votes
1
answer
98
views
Azure static web app. CORS issue when calling app api
I've got an Azure static web app, with a Vue3 frontend and fastapi backend.
The fastapi api is up an running works at https://xxxxxxxxxxx-xxxxxxxx.3.azurestaticapps.net/api
The vue app works at https:/...
0
votes
1
answer
102
views
Azure Static Web Apps Function API Not Working with Second Function
In VS Code, I created a new Function app using the command palette (Azure Static Web Apps: Create HTTP Function). I used C# as the Function language.
The following reference was added to the csproj ...
0
votes
0
answers
20
views
how do I dynamically configure openIdIssuer for 1:1 Azure Static Web App
I have an azure static web app that for reasons specific to the industry it is developed for will require me to deploy a single web app per tenant that we are working with. Currently the openIdIssuer ...
0
votes
1
answer
138
views
Can Azure static web apps have Azure App Service as their backend?
I need to create a Azure static web app and let users download a file generated by an already existing Azure app service. Can static web apps communicate with Azure app services as their backend?
0
votes
1
answer
69
views
Azure static webapp?
I have a static web app there I can able to add only 5 domains (URL) but I want to map more than 15 URLs.
instead of creating new static web app, any other alternate way.
FYI - I am using azure devops ...
0
votes
0
answers
27
views
Invite links infinite loop on Edge but work on Chrome
Hey so when inviting users to our internal site, they are usually redirected from styled auth page auth/login then to .auth/* then to the site once verified. However, the invite link loops this ...
0
votes
1
answer
238
views
Issue with final redirect URI after successful AAD Auth in a React.js Azure Static Web App
I am very new to React.js. Just created a simple app where user needs to authenticate with the Azure Active Directory (AAD) to access a given page ("authenticated-map"). I'm using Custom AAD ...
0
votes
1
answer
180
views
Azure Static Web App unable to connect to Supabase
So, I have a static web app hosted on Azure (learning purposes), and the same app hosted on Vercel. Both of them point to the same Supabase project.
I have had in the past issues with Vercel caching ...
0
votes
1
answer
267
views
How to correctly configure Azure Static Web App with Create React App and react router v6
I have a react app which is using create react app and react router v6. It's being deployed to Azure Static Web App via github action.
.yml file for the action looks like this
name: Azure Static Web ...
0
votes
0
answers
29
views
How to deploy Angular app to Azure Static Webapp using Azure Devops server? [duplicate]
As of now we are using Azure Devops server for our Angular application build and deployment to Azure Appservice.
Here is our current structure and step of our CICD pipeline in ADO server.
- bash: |
...
0
votes
0
answers
13
views
offline installation of swa cli will work? [duplicate]
we dont have direct connectivity to nodejs.org site from our Build agent linux machine and only Jfrog proxy repo for npm packages we are using.
We configured the jfrog settings on the repo to connect ...
0
votes
0
answers
52
views
How to handle Post Request send to an Angular Azure Static Web App
I am building a new website to replace our existing one, which is currently a php site hosted at www.mysite.com. The new site is an angular app, published to an azure static web app using SWA. It has ...
0
votes
0
answers
58
views
how to install static-web-app-cli offline in redhat and ubuntu?
As the Azuredevops server is not supported for for the task "task: AzureStaticWebApp@0", we were trying to use the swa cli in our azuredevops agents(ubuntu and redhat).
But offline ...
1
vote
0
answers
158
views
Azure Static Web App authentication. Tokens and multi-tenant
We have an Azure Static Web App running which has been configured with all routes being restricted.
And custom authentication is also setup according to documentation.
The associated App Registration ...
0
votes
1
answer
93
views
Create Environment based workflow on git to host angular application on Azure static web app
I have created a workflow to host an Angular application on Azure static web apps but I want to host based on environment for development I want to execute command
ng build --configuration=development
...
0
votes
0
answers
188
views
Page on Static Web App throw a 500 error when I used getServerSideProps from Next.js
I am not sure why the app works as expected on my local, but as soon it is published as a Static Web App on Azure, it throws a 500 Internal Server Error.
It is my first Next.js app on Azure. Perhaps ...
0
votes
1
answer
572
views
How to manually deploy a NextJS SPA in Azure Static Web Apps
I have this NextJS SPA that I want to deploy in Azure Static Web Apps. It's a fairly simple app with some dynamic routes (e.g. /pages/requests/[id]/*). Data in my components/routes is fetched through ...
1
vote
0
answers
134
views
Nitro overwrites staticwebapp.config.json when preset:azure
I have a Nuxt 3 application that I deploy to Azure Static Web App service in Azure DevOps pipeline.
After reading the configuration I've added some custom auth config and allowedRoles.
The problem I ...
0
votes
0
answers
214
views
Querying execution status of Durable Function from Azure Static Web App returns 400 - Bad Request
I have a React app that is hosted as a Static Web App on Azure.
The frontend is linked to a Durable Function App that provides some endpoints as the Web Apps backend.
Since the workflows executed in ...
0
votes
1
answer
311
views
Azure Static Web app doesnt not display the content
I have a Node.js angular web app created with Azure and deploy in Azure App service through github repository.
The website is not display the content and empty page is displayed though no errors.
Not ...
0
votes
0
answers
127
views
Angular on Azure Static Web App bugs out on refresh
I've had an Angular application deployed to Azure Static Web Apps via Github Actions, with a staticwebapp.config.json configured as follows:
"trailingSlash": "auto",
"...
1
vote
2
answers
569
views
How do I correctly (and securely) set environment variables for an Azure SWA-hosted React.js website (frontend-only; no backend)?
My setup is Vite-based development environment with React.js framework; GitHub Actions for CI/CD.
I can pass my environment variables into my app without an issue. But, in the event that I run a build ...
3
votes
0
answers
126
views
Having trouble passing env variable values to Azure SWA-deployed frontend-only web app
My situation is the following:
Vite-based development environment. React.js frontend-only web site; deployed to Azure SWA successfully. I have included an instance of Google Maps JavaScript API as ...