Questions tagged [azure-static-website-routing]

10 questions
12
votes
3 answers

Azure Static App Route configuration with React Router

I am attempting to configure a static app on azure and am struggling to route correctly. When I navigate to /lti/login/ within the app it works fine. But if I refresh it throws a 404, which tells me that my routes.json isn't setup correctly (maybe).…
Snoopy
  • 1,257
  • 2
  • 19
  • 32
5
votes
2 answers

staticwebapp.config.json not working with github Azure static web site?

I created a simple site with the following file structure: /index.html /down.html /.github/workflows/azure-static-web-apps-xxxx.yml /staticwebapp.config.json This deploys, and I can see my index and down pages, and if I modify either, it magically…
John Little
  • 10,707
  • 19
  • 86
  • 158
3
votes
1 answer

Azure App Service Static Website routes.json doesn't work

I deployed my static website (React app) to Azure App Service with routes.json to enable HTML5 routing fallback. My routes json is located in /public and is available under URL https://mywebsite.azurewebsites.net/routes.json. { "routes": [ { …
1
vote
0 answers

Angular RouterModule - getting 404 on page refresh with path defined in routes Azure Static Web Apps

I had created child components to lazy load based on nav menu click which has paths "HTML". The app-routing.module.ts has the following routes defined, const routes: Routes = [{ path: 'HTML', loadChildren: () =>…
1
vote
1 answer

Host static apps from multiple Azure blob storage accounts through one domain

I have got multiple projects, each has its own storage account (Needed for billing, data residency and various other admin and security reasons). Each project/account has multiple static websites. I have created an app service which is a wrapper…
0
votes
1 answer

Is it possible to add a custom domain for an Azure Blob Storage Static Website without a public CNAME record?

I have an Azure Blob Storage static site that I am trying to add a custom subdomain for (such that mysite.example-company.com points to my static site). I am following this documentation page. The static site's firewall is configured in the Azure…
0
votes
1 answer

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 Auth for Azure Static Web Apps (specifically Azure Active…
0
votes
1 answer

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 and for production ng build…
0
votes
1 answer

Images not loading after deploy - React - Azure Static Web Apps

I'm building a react + typescript website and I've deployed the application using azure static web apps. On localhost everything works as expected, but on the published environment, no app image is displayed. Looking at the console, I get this…
0
votes
1 answer

How to set up Azure Static Website redirect from naked domain to www

I have Azure static website mapped to a custom domain hosted with GoDaddy. I am using Azure CDN for https as per Microsoft instructions. This is all working fine if I type www.example.com. But if I omit www subdomain, I get…
under
  • 2,519
  • 1
  • 21
  • 40