Questions tagged [azure-static-website-hosting]

48 questions
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
2 answers

Javascript is not able to load the list of HTML files in Static Website

I have a static website, hosted on Azure (with free plan). The following is the structure of my website: Goal: I want that the webpage all-travel-blogs.html display the titles of all the travel blogs present inside the folder travel-blogs. To…
skm
  • 5,015
  • 8
  • 43
  • 104
0
votes
0 answers

NextJS website hosted on Azure as a Static Web App gets 405 error when accessing /API/* routes

When running my nextjs app locally I can call /api/foo.js from the nextjs app itself successfully. However once hosted on Azure as a Static Web App it returns a 405 Method Not Allowed error. I wonder if this is to do with /api expecting to be used…
0
votes
2 answers

How to create a pure redirect HTTP site under Azure?

I have a static website foo.example.com that contains a list of pages (several hundreds). I want to migrate this website to another static website, as subfolder www.example.com/foo. At this point, I have a list of URLs from foo.example.com and their…
Joannes Vermorel
  • 8,976
  • 12
  • 64
  • 104
0
votes
1 answer

"No url found for submodule path 'PropWorx.Portal' in .gitmodules" error when running pipeline in Azure DevOps

I have an Angular 12 web app which build and runs just fine locally on my development PC. The code is in a git repository in Azure DevOps. I now want to publish it to Azure Static Web App (using CD/CI), so I create a new static web app, point it to…
0
votes
1 answer

microsoft azure file upload api creation in javascript

https://learn.microsoft.com/en-us/azure/developer/javascript/tutorial/browser-file-upload-azure-storage-blob I used this sample repo and was following the step by step procedure given in this website. I got stuck at point no-9. Can anyone help me…
0
votes
1 answer

Getting: Could not detect any platform in the source directory. for Deploying React on Azure Static site

Im deploying on azure static web app but getting the error, which says: Could not detect any platform in the source directory. Error: Could not detect the language from repo. i tried changing the app_location to /src but still showing could not…
0
votes
1 answer

Azure Static Web App - Copying staticwebapp.config.json to output directory

I'm using a GitHub Action to build and deploy a Vue Azure Static Web App. When using the default template, my staticwebapp.config.json file which is at the root of the Vue app gets applied correctly and I see Copying 'staticwebapp.config.json' to…
0
votes
1 answer

Visual Studio Code "Deploy to Static Website via Azure Storage" is unable to deploy the static website to Azure storage

I've created a sample react website and trying to deploy the static website to Azure Storage using Visual Studio Code. This is the reference I've used to create and deploy static website:…
0
votes
0 answers

Website Returns Page Not Found when UTM Parameters appended

We have a website that currently returns a Page Not Found when UTM parameters are appended to it. This is across the homepage and all URL paths. Does not accept any strings that start with '?'. The standard, non-appended URLs work just fine. Any…
0
votes
1 answer

How can I log trace information from an Azure Static Website?

I have a JavaScript website deployed into an Azure Storage Account (Static Website) and I would like to log debug information (somewhere). For example, when a user logs in, I would like to track them around the site and print user…
Adrian
  • 670
  • 10
  • 24
0
votes
1 answer

Azure Devops: Credentials error with deploy of Static Web Site to Azure Blob Storage

Tasks are delete the blob storage then upload the built Jekyll site. Output Error Code: [1] Error: Azure login failed Script failed with error: Get Token request returned http error: 401 and server response:…
0
votes
1 answer

Emails are not reaching in microsoft azure hosted website

We have hosted our website on the Microsoft Azure platform. We created a new contact us form. From the contact us form, the mails are not reaching the mail id it is directed to after uploading our site. We have tested it from our test-site and it is…
0
votes
0 answers

How do I re-write a URL to remove the .html extension on an Azure Static Website using the Rules Engine for Azure CDN?

I am wondering how I can rewrite my URL brianmilinski.com/blog.html using windows Azure default rules engine. I have a static website set up on Azure, but am having a difficult time finding actual examples and documentation on how to use the rewrite…
0
votes
1 answer

Why Azure Devops File Copy static website not copying to root?

I have a problem deploying my angular app to Azure storage static website. I created a CI/CD pipeline last year, I was using it for months. There was no deployment in the past few months, and with today's deployment I ran into some problems. The…
petyusa
  • 163
  • 2
  • 10